GetCharCount()

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

Get the number of characters needed to decode a byte buffer.

virtual int System::Text::Encoding::GetCharCount(ArrayPtr<uint8_t> bytes, int index, int count)

Arguments

ParameterTypeDescription
bytesArrayPtr<uint8_t>Bytes to decode.
indexintSlice beginning.
countintSlice size.

Return Value

Number of characters.

Encoding::GetCharCount(ArrayPtr<uint8_t>) method

Get the number of characters needed to decode a byte buffer.

virtual int System::Text::Encoding::GetCharCount(ArrayPtr<uint8_t> bytes)

Arguments

ParameterTypeDescription
bytesArrayPtr<uint8_t>Bytes to decode.

Return Value

Number of characters.

Encoding::GetCharCount(const uint8_t *, int) method

Get the number of characters needed to decode a byte buffer.

virtual int System::Text::Encoding::GetCharCount(const uint8_t *bytes, int count)

Arguments

ParameterTypeDescription
bytesconst uint8_t *Bytes to decode.
countintBytes count.

Return Value

Number of characters.

See Also