System::Text::ICUEncoder::GetByteCount method

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

Gets the number of bytes needed to encode a buffer.

virtual int System::Text::ICUEncoder::GetByteCount(ArrayPtr<char_t> chars, int index, int count, bool flush)
ParameterTypeDescription
charsArrayPtr<char_t>Characters to encode.
indexintBuffer offset.
countintNumber of characters to encode.
flushboolIf true, cleans internal encoder state after calculation.

ReturnValue

Number of bytes required to encode the buffer.

See Also

ICUEncoder::GetByteCount(const char_t *, int, bool) method

Gets the number of bytes needed to encode a buffer.

virtual int System::Text::ICUEncoder::GetByteCount(const char_t *chars, int count, bool flush)
ParameterTypeDescription
charsconst char_t *Characters to encode.
countintNumber of characters to encode.
flushboolIf true, cleans internal encoder state after calculation.

ReturnValue

Number of bytes required to encode the buffer.

See Also