Encapsulates encoding character sequence into byte sequence. Objects of this class should only be all...
Definition: encoder.h:18
Encoder that uses encoding object for encoding. Objects of this class should only be allocated using ...
Definition: encoding_encoder.h:15
EncodingEncoder(EncodingPtr encoding_)
Constructor.
virtual void Convert(ArrayPtr< char_t > chars, int charIndex, int charCount, ArrayPtr< uint8_t > bytes, int byteIndex, int byteCount, bool flush, int &charsUsed, int &bytesUsed, bool &completed)
Converts characters to bytes.
EncodingPtr encoding
Encoding to use.
Definition: encoding_encoder.h:42
virtual void Convert(const char_t *chars, int charCount, uint8_t *bytes, int byteCount, bool flush, int &charsUsed, int &bytesUsed, bool &completed)
Converts characters to bytes.