UTF32Encoding: GetBytes

GetBytes

Encodes a set of characters into an array of bytes.



 Public Function GetBytes(
	  ByRef Chars As Variant,
	  Optional ByRef Index As Variant,
	  Optional ByRef Count As Variant ) As Byte ( )

Parameters

Chars
[ByRef] Variant. The set of characters to be encoded into an array of bytes.
Index
[ByRef] Optional. Variant. The index of the first character to begin encoding from.
Count
[ByRef] Optional. Variant. The number of characters to be encoded.

Return Values

Byte() -  A byte array containing the encoded characters as bytes.

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