System::Text::ASCIIEncoding::GetMaxCharCount method

ASCIIEncoding::GetMaxCharCount method

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

int System::Text::ASCIIEncoding::GetMaxCharCount(int byteCount) override
ParameterTypeDescription
byteCountintByte count.

ReturnValue

Number of characters sufficient to hold any sequence of byteCount characters.

See Also