API:System.SysUtils.TBigEndianUnicodeEncoding.GetChars
Delphi
function GetChars(Bytes: PByte; ByteCount: Integer; Chars: PChar; CharCount: Integer): Integer; overload; override;
C++
virtual int __fastcall GetChars(Winapi::Windows::PByte Bytes, int ByteCount, System::WideChar * Chars, int CharCount)/* overload */;
inline TCharArray __fastcall GetChars(const System::Byte *Bytes, const System::NativeInt Bytes_High){ return TEncoding::GetChars(Bytes, Bytes_High); }
inline TCharArray __fastcall GetChars(const TBytes Bytes){ return TEncoding::GetChars(Bytes); }
inline TCharArray __fastcall GetChars(const System::Byte *Bytes, const System::NativeInt Bytes_High, int ByteIndex, int ByteCount){ return TEncoding::GetChars(Bytes, Bytes_High, ByteIndex, ByteCount); }
inline TCharArray __fastcall GetChars(const TBytes Bytes, int ByteIndex, int ByteCount){ return TEncoding::GetChars(Bytes, ByteIndex, ByteCount); }
inline int __fastcall GetChars(const System::Byte *Bytes, const System::NativeInt Bytes_High, int ByteIndex, int ByteCount, const System::WideChar *Chars, const System::NativeInt Chars_High, int CharIndex){ return TEncoding::GetChars(Bytes, Bytes_High, ByteIndex, ByteCount, Chars, Chars_High, CharIndex); }
inline int __fastcall GetChars(const TBytes Bytes, int ByteIndex, int ByteCount, const TCharArray 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 | TBigEndianUnicodeEncoding |
Description
Décode un ensemble d'octets en un ensemble de caractères.
System.SysUtils.TBigEndianUnicodeEncoding.GetChars hérite de System.SysUtils.TUnicodeEncoding.GetChars. Tout le contenu en-dessous de cette ligne se réfère à System.SysUtils.TUnicodeEncoding.GetChars.
Décode un ensemble d'octets en un ensemble de caractères.
GetChars génère un nombre de caractères en décodant Bytes. Le tableau suivant liste les paramètres attendus par la méthode GetChars et leur description.
Paramètre | Description |
---|---|
Bytes |
Un pointeur d'octet ou un tableau d'octets. |
ByteCount |
Spécifie le nombre d'octets à décoder. S'il est absent, tous les octets seront décodés. |
Chars |
Un pointeur sur la destination des caractères décodés. |
CharCount |
Spécifie le nombre maximal de caractères à stocker. |
La valeur de retour est un tableau de caractères décodés, ou le nombre de caractères décodés.