ASCIIEncoding: GetMaxByteCount

GetMaxByteCount

Returns the maximum number of bytes that can be created from a specific number of characters.



 Public Function GetMaxByteCount(
	  ByVal CharCount As Long ) As Long

Parameters

CharCount
[ByVal] Long. The number of characters to be encoded.

Return Values

Long -  The maximum number of bytes that can be generated from the specified number of characters.

Remarks

See Also

Project VBCorLib Overview Class ASCIIEncoding Overview ASCIIEncoding Properties ASCIIEncoding Methods GetHashCode GetMaxCharCount Encoding