System::Text::EncodingEncoder::Convert method

EncodingEncoder::Convert(const char_t *, int, uint8_t *, int, bool, int&, int&, bool&) method

Converts characters to bytes.

virtual void System::Text::EncodingEncoder::Convert(const char_t *chars, int charCount, uint8_t *bytes, int byteCount, bool flush, int &charsUsed, int &bytesUsed, bool &completed)
ParameterTypeDescription
charsconst char_t *Characters to encode.
charCountintInput buffer size.
bytesuint8_t *Destination byte buffer.
byteCountintDestination array size.
flushboolIf true, cleans internal encoder state after calculation.
charsUsedint&Reference to variable to store count of characters read.
bytesUsedint&Reference to variable to store count of bytes written.
completedbool&Reference to variable to be set to true if input buffer was exhausted and to false otherwise.

See Also

EncodingEncoder::Convert(ArrayPtr<char_t>, int, int, ArrayPtr<uint8_t>, int, int, bool, int&, int&, bool&) method

Converts characters to bytes.

virtual void System::Text::EncodingEncoder::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)
ParameterTypeDescription
charsArrayPtr<char_t>Characters to encode.
charIndexintInput buffer offset.
charCountintInput buffer size.
bytesArrayPtr<uint8_t>Destination byte buffer.
byteIndexintDestination array offset.
byteCountintDestination array size.
flushboolIf true, cleans internal encoder state after calculation.
charsUsedint&Reference to variable to store count of characters read.
bytesUsedint&Reference to variable to store count of bytes written.
completedbool&Reference to variable to be set to true if input buffer was exhausted and to false otherwise.

See Also