System::Text::UTF8Encoding::GetMaxByteCount method

UTF8Encoding::GetMaxByteCount method

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

int System::Text::UTF8Encoding::GetMaxByteCount(int char_count) override
ParameterTypeDescription
char_countintNumber of characters to encode.

ReturnValue

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

See Also