ServerJS/Encodings: Difference between revisions

Jump to navigation Jump to search
→‎Alternative: Converter: fix some bad wording
(→‎API: fix example, add alternative API proposal)
(→‎Alternative: Converter: fix some bad wording)
Line 76: Line 76:
: Where from and to are the encoding names.
: Where from and to are the encoding names.
; [Method] push(byteStringOrArray)
; [Method] push(byteStringOrArray)
: Convert input from a ByteString or ByteArray. The results are stored in an internal buffer, and also those parts of byteStringOrArray that could not be converted (for multi-byte encodings, in a separate buffer).
: Convert input from a ByteString or ByteArray. The results are returned, and those parts of byteStringOrArray that could not be converted (for multi-byte encodings) are stored in a buffer.
: Returns (as a ByteString) as much as could be converted.
: Returns (as a ByteString) as much as could be converted.
; [Method] close()
; [Method] close()
62

edits

Navigation menu