API:System.SysUtils.TMBCSEncoding.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 | TMBCSEncoding |
Description
Décode un ensemble d'octets en un ensemble de caractères.
System.SysUtils.TMBCSEncoding.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.