UnicodeEncoding: GetPreamble

GetPreamble

Returns an array of bytes that represents this encoding.



 Public Function GetPreamble ( ) As Byte ( )

Return Values

Byte() -  A byte array containg the bytes to be used to identify this encoding type.

Remarks

If the encoding was created setting the BigEndian paramter to true, then this will return the Unicode byte array identifer &HFEFF otherwise &HFFFE for a non-bigEndian encoding. If no identifier is to be emitted, then an empty byte array is returned (not a null array).

See Also

Project CorLib Overview

Class UnicodeEncoding Overview