ServerJS/Binary/B: Difference between revisions

Jump to navigation Jump to search
→‎Specification: toString(codec) -> decodeToString(codec)
(→‎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.
; toString(codec)
; 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]"
* toString(codec) - decoded
* decodeToString(codec) - decoded
* toByteArray() -> just a copy
* toByteArray() -> just a copy
* toByteArray(sourceCodec, targetCodec) -> transcoded
* toByteArray(sourceCodec, targetCodec) -> transcoded
62

edits

Navigation menu