System::Text::Encoder::GetByteCount method

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

Gets the number of bytes needed to encode a buffer.

virtual int System::Text::Encoder::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

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

Gets the number of bytes needed to encode a buffer.

virtual int System::Text::Encoder::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