API:System.SysUtils.TMBCSEncoding.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 TMBCSEncoding

Description

Returns a preamble in a byte array that specifies the encoding used.

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

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


Code Examples