Encoder: Convert

Convert

Converts an array of Unicode characters to an encoded byte sequence and stores the result in an array of bytes.



 Public Sub Convert(
	  ByRef Chars ( ) As Integer,
	  ByVal CharIndex As Long,
	  ByVal CharCount As Long,
	  ByRef Bytes ( ) As Byte,
	  ByVal ByteIndex As Long,
	  ByVal ByteCount As Long,
	  ByVal Flush As Boolean,
	  ByRef CharsUsed As Long,
	  ByRef BytesUsed As Long,
	  ByRef Completed As Boolean )

Parameters

Chars
[ByRef] Integer. An array of characters to be converted.
CharIndex
[ByVal] Long. The starting position to be converting in the Chars array.
CharCount
[ByVal] Long. The number of characters to be converted.
Bytes
[ByRef] Byte. An array to received the converted characters.
ByteIndex
[ByVal] Long. The starting position to begin receiving converted characters.
ByteCount
[ByVal] Long. The number of bytes in the received buffer to be used.
Flush
[ByVal] Boolean. True if the characters have finished being converted; otherwise False.
CharsUsed
[ByRef] Long. The number characters actually converted from the Chars array.
BytesUsed
[ByRef] Long. The number bytes used for the encoding of the characters.
Completed
[ByRef] Boolean. True if the specificed CharCount had been reached in the conversion; otherwise False.

See Also

Project CorLib Overview

Class Encoder Overview