GetCharsEx
Decodes a set of bytes into the supplied Integer array.
Public Function GetCharsEx(
ByRef Bytes ( ) As Byte,
ByVal ByteIndex As Long,
ByVal ByteCount As Long,
ByRef Chars ( ) As Integer,
ByVal CharIndex As Long ) As Long
Parameters
- Bytes
-
[ByRef]
Byte.
The set of bytes to be decoded into characters.
- ByteIndex
-
[ByVal]
Long.
The index of the first byte to begin decoding from.
- ByteCount
-
[ByVal]
Long.
The number of bytes to be used in decoding.
- Chars
-
[ByRef]
Integer.
The destination character array for the decoded bytes.
- CharIndex
-
[ByVal]
Long.
The first index to begin storing decoded bytes in Chars.
Return Values
Long - The number of characters decoded from the array of bytes.
Remarks
The Chars array must be large enough to handle all the bytes that will
be decoded. To ensure the Chars array is large enough, use either GetCharCount or
GetMaxCharCount to determine a size that will hold the decoded bytes.
See Also
Project CorLib Overview
Class UTF7Encoding Overview