GetCharCount()

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)

Arguments

ParameterTypeDescription
bytesArrayPtr<uint8_t>Bytes to decode.
indexintBuffer offset.
countintNumber of bytes to decode.

Return Value

Number of characters required to decode the buffer.

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)

Arguments

ParameterTypeDescription
bytesArrayPtr<uint8_t>Bytes to decode.
indexintBuffer offset.
countintNumber of bytes to decode.
flushboolIf true, cleans internal decoder state after calculation.

Return Value

Number of characters required to decode the buffer.

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)

Arguments

ParameterTypeDescription
bytesconst uint8_t *Bytes to decode.
countintNumber of bytes to decode.
flushboolIf true, cleans internal decoder state after calculation.

Return Value

Number of characters required to decode the buffer.

See Also