API:System.SysUtils.TUTF8Encoding.GetPreamble

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetPreamble: TBytes; override;

C++

virtual System::DynamicArray<System::Byte> __fastcall GetPreamble();

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.

System.SysUtils.TUTF8Encoding.GetPreamble inherits from System.SysUtils.TMBCSEncoding.GetPreamble. All content below this line refers to System.SysUtils.TMBCSEncoding.GetPreamble.

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