System.SysUtils.TBigEndianUnicodeEncoding.GetPreamble

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function GetPreamble: TBytes; override;

C++

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

Propriétés

Type Visibilité  Source Unité  Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils TBigEndianUnicodeEncoding

Description

Renvoie le préambule UTF-16 big-endian d'un tableau d'octets.

Dans la classe TBigEndianUnicodeEncoding, GetPreamble renvoie le BOM (Byte-Order Mark) UTF-16 big-endian. GetPreamble renvoie un tableau de 2 octets qui représente le BOM (Byte-Order Mark) UTF-16 big-endian utilisé ultérieurement pour détecter si un texte donné est encodé en UTF-16 big-endian.

Voir aussi