GetMaxByteCount()

ASCIIEncoding::GetMaxByteCount(int) method

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

int System::Text::ASCIIEncoding::GetMaxByteCount(int char_count) override

Arguments

ParameterTypeDescription
char_countintCharacter count.

Return Value

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

See Also