GetMaxCharCount()

ASCIIEncoding::GetMaxCharCount(int) method

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

int System::Text::ASCIIEncoding::GetMaxCharCount(int byteCount) override

Arguments

ParameterTypeDescription
byteCountintByte count.

Return Value

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

See Also