GetByteCount()

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)

Arguments

ParameterTypeDescription
charsArrayPtr<char_t>Characters to encode.
indexintBuffer offset.
countintNumber of characters to encode.
flushboolIf true, cleans internal encoder state after calculation.

Return Value

Number of bytes required to encode the buffer.

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)

Arguments

ParameterTypeDescription
charsconst char_t *Characters to encode.
countintNumber of characters to encode.
flushboolIf true, cleans internal encoder state after calculation.

Return Value

Number of bytes required to encode the buffer.

See Also