System::Text::ASCIIEncoding::GetMaxByteCount method

ASCIIEncoding::GetMaxByteCount method

Gets max byte count possible to hold a string of known character count.

int System::Text::ASCIIEncoding::GetMaxByteCount(int char_count) override
ParameterTypeDescription
char_countintCharacter count.

ReturnValue

Number of characters sufficient to hold any string of charCount characters.

See Also