System::Text::Decoder::GetCharCount method

Decoder::GetCharCount(ArrayPtr<uint8_t>, int, int) method

Gets the number of characters needed to decode a buffer.

virtual int System::Text::Decoder::GetCharCount(ArrayPtr<uint8_t> bytes, int index, int count)
ParameterTypeDescription
bytesArrayPtr<uint8_t>Bytes to decode.
indexintBuffer offset.
countintNumber of bytes to decode.

ReturnValue

Number of characters required to decode the buffer.

See Also

Decoder::GetCharCount(ArrayPtr<uint8_t>, int, int, bool) method

Gets the number of characters needed to decode a buffer.

virtual int System::Text::Decoder::GetCharCount(ArrayPtr<uint8_t> bytes, int index, int count, bool flush)
ParameterTypeDescription
bytesArrayPtr<uint8_t>Bytes to decode.
indexintBuffer offset.
countintNumber of bytes to decode.
flushboolIf true, cleans internal decoder state after calculation.

ReturnValue

Number of characters required to decode the buffer.

See Also

Decoder::GetCharCount(const uint8_t *, int, bool) method

Gets the number of characters needed to decode a buffer.

virtual int System::Text::Decoder::GetCharCount(const uint8_t *bytes, int count, bool flush)
ParameterTypeDescription
bytesconst uint8_t *Bytes to decode.
countintNumber of bytes to decode.
flushboolIf true, cleans internal decoder state after calculation.

ReturnValue

Number of characters required to decode the buffer.

See Also