UTF7Encoding: GetByteCount

GetByteCount

Returns the number of bytes that would be produced from the set of characters using this encoding.



 Public Function GetByteCount(
	  ByRef Chars As Variant,
	  Optional ByRef Index As Variant,
	  Optional ByRef Count As Variant ) As Long

Parameters

Chars
[ByRef] Variant. A set of characters used to calculated the number of bytes once encoded with this encoding.
Index
[ByRef] Optional. Variant. The starting index of the first character to be used.
Count
[ByRef] Optional. Variant. The number of characters to include in the calculation.

Return Values

Long -  The number of bytes that would be produced by encoding the set of characters.

Remarks

The Chars parameter will accept either a String or an Integer array. The Index is zero based for both the String and Integer array, not 1 based like Mid$.

See Also

Project CorLib Overview

Class UTF7Encoding Overview