Module ringo/encoding
Low-level support for character encoding and decoding.
Class Decoder
Instance Methods
- clear()
- close()
- decode(bytes, start, end)
- hasPendingInput()
- read()
- readFrom(source)
- readLine(includeNewline)
- toString()
Instance Properties
Class Encoder
Instance Methods
- clear()
- close()
- encode(string, start, end)
- toByteArray()
- toByteString()
- toString()
- writeTo(sink)
Instance Properties
Decoder.prototype. clear ()
Decoder.prototype. close ()
Decoder.prototype. decode (bytes, start, end)
Decode bytes from the given buffer.
Parameters
binary.Binary | bytes | a ByteString or ByteArray |
Number | start | The start index, or 0 if undefined |
Number | end | the end index, or bytes.length if undefined |