Returns the byte length of a string when encoded using this encoding
A value to calculate the length of.
Decode a buffer to a string. Any incomplete characters will be replaced with substitution characters appropriate for the character encoding.
A buffer to decode.
Encode a string to a buffer. Any incomplete characters will be replaced with substitution characters and encoded appropriate for the character encoding.
A string to encode.
Obtain a decoder that converts an encoded sequence of bytes into string.
Obtains an encoder that converts a sequence of Unicode characters into an encoded sequence of bytes.
Generated using TypeDoc
Represents a character encoding.