UnicodeEncoding: GetCharCount

GetCharCount

Returns the number of characters that would be produced by decoding a byte array.



 Public Function GetCharCount(
	  ByRef Bytes ( ) As Byte,
	  Optional ByRef Index As Variant,
	  Optional ByRef Count As Variant ) As Long

Parameters

Bytes
[ByRef] Byte. The bytes to use when calculating the number of characters.
Index
[ByRef] Optional. Variant. The starting index in Bytes to being calculating from.
Count
[ByRef] Optional. Variant. The number of bytes to be used in the calculation.

Return Values

Long -  The number of characters that would be decoded from the set of bytes.

See Also

Project CorLib Overview

Class UnicodeEncoding Overview