System.SysUtils.TBigEndianUnicodeEncoding.GetPreamble
Delphi
function GetPreamble: TBytes; override;
C++
virtual System::DynamicArray<System::Byte> __fastcall GetPreamble(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | TBigEndianUnicodeEncoding |
Description
Returns the big-endian UTF-16 preamble in a byte array.
In the TBigEndianUnicodeEncoding class, GetPreamble returns the big-endian UTF-16 BOM (byte-order mark). GetPreamble returns a 2 byte array that represents the big-endian UTF-16 byte-order mark later used to detect if a given text is big-endian UTF-16 encoded.