GetBytes
Returns the encoded bytes generated from a set of unicode characters.
Public Function GetBytes(
ByRef Chars ( ) As Integer,
ByVal CharIndex As Long,
ByVal CharCount As Long,
ByRef Bytes ( ) As Byte,
ByVal ByteIndex As Long,
ByVal Flush As Boolean ) As Long
Parameters
- Chars
-
[ByRef]
Integer.
The unicode characters to be encoded.
- CharIndex
-
[ByVal]
Long.
The character to begin encoding at.
- CharCount
-
[ByVal]
Long.
The number of characters to be used in the encoding process.
- Bytes
-
[ByRef]
Byte.
The encoded set of bytes produced from encoding Chars.
- ByteIndex
-
[ByVal]
Long.
The starting position in the array to place the encoded bytes.
- Flush
-
[ByVal]
Boolean.
Indicates if the Encoder should maintain state between calls.
Return Values
Long - The number of bytes actually produced from the encoding.
See Also
Project CorLib Overview
Class Encoder Overview