UTF32Encoding: GetMaxCharCount

GetMaxCharCount

Returns the maximum number of characters than can be decoded from the number of bytes specified.



 Public Function GetMaxCharCount(
	  ByVal ByteCount As Long ) As Long

Parameters

ByteCount
[ByVal] Long. The number of bytes to be decoded.

Return Values

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

Exceptions

Exception Condition
ArgumentOutOfRangeException ByteCount is less than zero.
-or-
The resulting number of bytes is greater than the maximum number that can be returned as an integer.

See Also

Project CorLib Overview

Class UTF32Encoding Overview

Encoding