System.SysUtils.TMBCSEncoding.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(System::Byte const *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(System::Byte const *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(System::Byte const *Bytes, const int Bytes_High, int ByteIndex, int ByteCount, System::WideChar const *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 | TMBCSEncoding |
Description
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 cette méthode 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.