API:System.SysUtils.TUnicodeEncoding.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 | TUnicodeEncoding |
Description
Returns a preamble in a byte array that specifies the encoding used. {{#multireplace:System.SysUtils.TUnicodeEncoding.GetPreamble|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:System.SysUtils.TEncoding.GetPreamble|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:System.SysUtils.TEncoding.GetPreamble|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.
Returns a preamble in a byte array that specifies the encoding used.
TEncoding.GetPreamble returns an array of bytes of type TBytes that contains the preamble required for the encoding used. If no preamble is required, a zero length array is returned.
See Also