API:System.SysUtils.TUTF8Encoding.GetPreamble

From RAD Studio API Documentation

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 TUTF8Encoding

Description

Returns a preamble in a byte array that specifies the encoding that was used. {{#multireplace:System.SysUtils.TUTF8Encoding.GetPreamble|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:System.SysUtils.TMBCSEncoding.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.TMBCSEncoding.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 that was used.

In the TMBCSEncoding class, GetPreamble returns a zero-length array. TMBCSEncoding does not define a specific preamble. This is left to descendant classes.

See Also