GetBytes()

ICUEncoder::GetBytes(ArrayPtr<char_t>, int, int, ArrayPtr<uint8_t>, int, bool) method

Get the bytes that result from encoding a buffer.

virtual int System::Text::ICUEncoder::GetBytes(ArrayPtr<char_t> chars, int charIndex, int charCount, ArrayPtr<uint8_t> bytes, int byteIndex, bool flush)

Arguments

ParameterTypeDescription
charsArrayPtr<char_t>Characters to encode.
charIndexintSource array offset.
charCountintSource subarray length.
bytesArrayPtr<uint8_t>Destination byte buffer.
byteIndexintDestination buffer offset.
flushboolIf true, cleans internal encoder state after calculation.

Return Value

Number of bytes written.

ICUEncoder::GetBytes(const char_t *, int, uint8_t *, int, bool) method

Get the bytes that result from encoding a buffer.

virtual int System::Text::ICUEncoder::GetBytes(const char_t *chars, int charCount, uint8_t *bytes, int byteCount, bool flush)

Arguments

ParameterTypeDescription
charsconst char_t *Characters to encode.
charCountintSource array length.
bytesuint8_t *Destination byte buffer.
byteCountintDestination buffer size.
flushboolIf true, cleans internal encoder state after calculation.

Return Value

Number of bytes written.

See Also