System::Text::EncodingDecoder::Convert method

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

Converts bytes to characters.

void System::Text::EncodingDecoder::Convert(const uint8_t *bytes, int byteCount, char_t *chars, int charCount, bool flush, int &bytesUsed, int &charsUsed, bool &completed) override
ParameterTypeDescription
bytesconst uint8_t *Bytes to decode.
byteCountintInput buffer size.
charschar_t *Destination character buffer.
charCountintDestination array size.
flushboolIf true, cleans internal decoder state after calculation.
bytesUsedint&Reference to variable to store count of bytes read.
charsUsedint&Reference to variable to store count of characters written.
completedbool&Reference to variable to be set to true if input buffer was exhausted and to false otherwise.

See Also

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

Converts bytes to characters.

void System::Text::EncodingDecoder::Convert(ArrayPtr<uint8_t> bytes, int byteIndex, int byteCount, ArrayPtr<char_t> chars, int charIndex, int charCount, bool flush, int &bytesUsed, int &charsUsed, bool &completed) override
ParameterTypeDescription
bytesArrayPtr<uint8_t>Bytes to decode.
byteIndexintInput buffer offset.
byteCountintInput buffer size.
charsArrayPtr<char_t>Destination character buffer.
charIndexintDestination array offset.
charCountintDestination array size.
flushboolIf true, cleans internal decoder state after calculation.
bytesUsedint&Reference to variable to store count of bytes read.
charsUsedint&Reference to variable to store count of characters written.
completedbool&Reference to variable to be set to true if input buffer was exhausted and to false otherwise.

See Also