62
edits
(→Specification: split and slice) |
(→Specification: toString(codec) -> decodeToString(codec)) |
||
| Line 52: | Line 52: | ||
; toString() | ; toString() | ||
: Returns a debug representation like "[ByteString 10]", where 10 is the length of the Array. | : Returns a debug representation like "[ByteString 10]", where 10 is the length of the Array. | ||
; | ; decodeToString(codec) | ||
: ''CONTROVERSIAL'' Returns the decoded ByteArray as a string. | : ''CONTROVERSIAL'' Returns the decoded ByteArray as a string. | ||
; indexOf(byte) | ; indexOf(byte) | ||
| Line 124: | Line 124: | ||
* toArray(codec) -> an array of the code points, decoded | * toArray(codec) -> an array of the code points, decoded | ||
* toString() -> a string representation like "[ByteArray 10]" | * toString() -> a string representation like "[ByteArray 10]" | ||
* | * decodeToString(codec) - decoded | ||
* toByteArray() -> just a copy | * toByteArray() -> just a copy | ||
* toByteArray(sourceCodec, targetCodec) -> transcoded | * toByteArray(sourceCodec, targetCodec) -> transcoded | ||
edits