System::Text::Encoding::GetMaxCharCount method

Encoding::GetMaxCharCount method

Get the maximum number of characters needed to decode a specified number of bytes.

virtual int System::Text::Encoding::GetMaxCharCount(int byte_count)=0
ParameterTypeDescription
byte_countintNumber of bytes to decode.

ReturnValue

Number of bytes sufficient to decode any string of given character length.

See Also