62
edits
m (→Constructor) |
(→Specification: definition lists + more doc for indexOf stuff) |
||
| Line 54: | Line 54: | ||
; toString(codec) | ; toString(codec) | ||
: ''CONTROVERSIAL'' Returns the decoded ByteArray as a string. | : ''CONTROVERSIAL'' Returns the decoded ByteArray as a string. | ||
; indexOf(byte) | |||
; indexOf(byte, start) | |||
; indexOf(byte, start, stop) | |||
: Returns the index of the first occurance of byte (a Number or a single element ByteString or ByteArray) or -1 if none was found. If start and/or stop are specified, only elements between the the indexes start and stop are searched. | |||
; lastIndexOf(byte) | |||
; lastIndexOf(byte, start) | |||
; lastIndexOf(byte, start, stop) | |||
: Returns the index of the last occurance of byte (a Number or a single element ByteString or ByteArray) or -1 if none was found. If start and/or stop are specified, only elements between the the indexes start and stop are searched. | |||
; byteAt(offset) | |||
; charCodeAt(offset) | |||
: Return the byte at offset as a Number. | |||
; charAt(offset) | |||
: Return the byte at offset as a ByteString. | |||
* split(delimiter:Number|ByteString) -> Array of ByteStrings | * split(delimiter:Number|ByteString) -> Array of ByteStrings | ||
* split(delimiter:Number|ByteString, count:Number) -> Array of ByteStrings | * split(delimiter:Number|ByteString, count:Number) -> Array of ByteStrings | ||
edits