Check if this encoder currently has accumulated state.
Returns any remaining input stored in the internal buffer as a Buffer. Incomplete characters will be replaced with substitution characters and encoded appropriate for the character encoding.
Returns an encoded buffer, ensuring that any incomplete characters at the end of the string are omitted from the returned Buffer and stored in an internal buffer for the next call to write() or end().
A string to encode.
Generated using TypeDoc
Converts a set of characters into a sequence of bytes.