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.
The character array containing the set of characters to encode.
- Index
-
[ByRef]
Optional.
Variant.
The index of the first character to encode.
- Count
-
[ByRef]
Optional.
Variant.
The number of characters to encode.
Return Values
Long - The number of bytes produced by encoding the specified characters.
Remarks
The Chars parameter will accept either a String or an Integer array.
If Chars is a string then the Index parameter is zero-based.
See Also
Project CorLib Overview
Class UTF32Encoding Overview
Encoding