BBjString::getBytes
Description
In BBj 7.0 and higher, this method encodes this String into a sequence of bytes using the platform's default charset, storing the result into a new byte array. The behavior of this method when this string cannot be encoded in the default charset is unspecified.
Syntax
Return Value |
Method |
---|---|
byte[] |
getBytes() |
void |
getBytes(int srcBegin, int srcEnd, byte[] dst, int dstBegin) |
byte[] |
getBytes(string charsetName) |
Parameters
Variable |
Description |
---|---|
srcBegin |
Index of the first character in the string to copy. |
srcEnd |
Index after the last character in the string to copy. |
dst |
The destination array. |
dstBegin |
The start offset in the destination array. |
charsetName |
The name of the supported charset. |
Return Value
Returns the resultant byte array.
Remarks
None.
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.