API:System.SysUtils.TUnicodeEncoding.GetChars
Delphi
function GetChars(Bytes: PByte; ByteCount: Integer; Chars: PChar; CharCount: Integer): Integer; overload; override;
C++
virtual int __fastcall GetChars(System::PByte Bytes, int ByteCount, System::WideChar * Chars, int CharCount)/* overload */;
inline System::DynamicArray<System::WideChar> __fastcall GetChars(const System::Byte *Bytes, const int Bytes_High){ return TEncoding::GetChars(Bytes, Bytes_High); }
inline System::DynamicArray<System::WideChar> __fastcall GetChars(const System::DynamicArray<System::Byte> Bytes){ return TEncoding::GetChars(Bytes); }
inline System::DynamicArray<System::WideChar> __fastcall GetChars(const System::Byte *Bytes, const int Bytes_High, int ByteIndex, int ByteCount){ return TEncoding::GetChars(Bytes, Bytes_High, ByteIndex, ByteCount); }
inline System::DynamicArray<System::WideChar> __fastcall GetChars(const System::DynamicArray<System::Byte> Bytes, int ByteIndex, int ByteCount){ return TEncoding::GetChars(Bytes, ByteIndex, ByteCount); }
inline int __fastcall GetChars(const System::Byte *Bytes, const int Bytes_High, int ByteIndex, int ByteCount, const System::WideChar *Chars, const int Chars_High, int CharIndex){ return TEncoding::GetChars(Bytes, Bytes_High, ByteIndex, ByteCount, Chars, Chars_High, CharIndex); }
inline int __fastcall GetChars(const System::DynamicArray<System::Byte> Bytes, int ByteIndex, int ByteCount, const System::DynamicArray<System::WideChar> Chars, int CharIndex){ return TEncoding::GetChars(Bytes, ByteIndex, ByteCount, Chars, CharIndex); }
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | class protected public |
System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | TUnicodeEncoding |
Description
Décode un ensemble d'octets en un ensemble de caractères.
System.SysUtils.TUnicodeEncoding.GetChars hérite de System.SysUtils.TEncoding.GetChars. Tout le contenu en-dessous de cette ligne se réfère à System.SysUtils.TEncoding.GetChars.
Décode un ensemble d'octets en un ensemble de caractères.
TEncoding.GetChars génère un nombre de caractères en décodant Bytes.
Bytes peut être un pointeur d'octets ou un tableau d'octets.
ByteIndex spécifie le premier octet à décoder. S'il est absent, l'index est 0.
ByteCount spécifie le nombre d'octets à décoder. S'il est absent, tous les octets seront décodés.
Chars est un pointeur sur la destination des caractères décodés.
CharIndex où commencer l'écriture des résultats dans 'Chars'.
La valeur de retour est le tableau des caractères décodés, ou le nombre de caractères décodés.