System.SysUtils.TBigEndianUnicodeEncoding.GetBytes

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function GetBytes(Chars: PChar; CharCount: Integer; Bytes: PByte; ByteCount: Integer): Integer; overload; override;

C++

virtual int __fastcall GetBytes(System::WideChar * Chars, int CharCount, Winapi::Windows::PByte Bytes, int ByteCount)/* overload */;
inline TBytes __fastcall  GetBytes(const System::WideChar Chars){ return TEncoding::GetBytes(Chars); }
inline TBytes __fastcall  GetBytes(const System::WideChar *Chars, const System::NativeInt Chars_High){ return TEncoding::GetBytes(Chars, Chars_High); }
inline TBytes __fastcall  GetBytes(const TCharArray Chars){ return TEncoding::GetBytes(Chars); }
inline TBytes __fastcall  GetBytes(const System::WideChar *Chars, const System::NativeInt Chars_High, int CharIndex, int CharCount){ return TEncoding::GetBytes(Chars, Chars_High, CharIndex, CharCount); }
inline TBytes __fastcall  GetBytes(const TCharArray Chars, int CharIndex, int CharCount){ return TEncoding::GetBytes(Chars, CharIndex, CharCount); }
inline int __fastcall  GetBytes(const System::WideChar *Chars, const System::NativeInt Chars_High, int CharIndex, int CharCount, const TBytes Bytes, int ByteIndex){ return TEncoding::GetBytes(Chars, Chars_High, CharIndex, CharCount, Bytes, ByteIndex); }
inline int __fastcall  GetBytes(const TCharArray Chars, int CharIndex, int CharCount, const TBytes Bytes, int ByteIndex){ return TEncoding::GetBytes(Chars, CharIndex, CharCount, Bytes, ByteIndex); }
inline TBytes __fastcall  GetBytes(const System::UnicodeString S){ return TEncoding::GetBytes(S); }
inline int __fastcall  GetBytes(const System::UnicodeString S, int CharIndex, int CharCount, const TBytes Bytes, int ByteIndex){ return TEncoding::GetBytes(S, CharIndex, CharCount, Bytes, ByteIndex); }
inline int __fastcall  GetBytes(const System::UnicodeString S, int CharIndex, int CharCount, const TBytes Bytes, int ByteIndex, const int StringBaseIndex){ return TEncoding::GetBytes(S, CharIndex, CharCount, Bytes, ByteIndex, StringBaseIndex); }

Propriétés

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

Description

Encode un ensemble de caractères en une séquence d'octets.

GetBytes encode un paramètre Chars en une séquence d'octets. Le tableau suivant liste les paramètres attendus par cette méthode et leur description.



Paramètre Description

Chars

Un tableau de caractères ou un pointeur de caractère à encoder en une séquence d'octets.

CharCount

Spécifie le nombre de caractères à encoder.

Bytes

Spécifie l'emplacement où sera écrite la séquence d'octets.

ByteCount

Le nombre maximal d'octets pouvant être écrits à l'emplacement donné.



La valeur de retour est le nombre d'octets réellement encodés ou la séquence d'octets TBytes réelle.

Voir aussi