System.SysUtils.TEncoding.GetChars
Delphi
function GetChars(Bytes: PByte; ByteCount: Integer; Chars: PChar; CharCount: Integer): Integer; overload; virtual; abstract;
function GetChars(const Bytes: array of Byte): TCharArray; overload;
function GetChars(const Bytes: TBytes): TCharArray; overload; inline;
function GetChars(const Bytes: array of Byte; ByteIndex, ByteCount: Integer): TCharArray; overload;
function GetChars(const Bytes: TBytes; ByteIndex, ByteCount: Integer): TCharArray; overload;
function GetChars(const Bytes: array of Byte; ByteIndex, ByteCount: Integer;
const Chars: array of Char; CharIndex: Integer): Integer; overload;
function GetChars(const Bytes: TBytes; ByteIndex, ByteCount: Integer;
const Chars: TCharArray; CharIndex: Integer): Integer; overload;
C++
virtual int __fastcall GetChars(Winapi::Windows::PByte Bytes, int ByteCount, System::WideChar * Chars, int CharCount) = 0 /* overload */;
TCharArray __fastcall GetChars(const System::Byte *Bytes, const System::NativeInt Bytes_High)/* overload */;
TCharArray __fastcall GetChars(const TBytes Bytes)/* overload */;
TCharArray __fastcall GetChars(const System::Byte *Bytes, const System::NativeInt Bytes_High, int ByteIndex, int ByteCount)/* overload */;
TCharArray __fastcall GetChars(const TBytes Bytes, int ByteIndex, int ByteCount)/* overload */;
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)/* overload */;
int __fastcall GetChars(const TBytes Bytes, int ByteIndex, int ByteCount, const TCharArray Chars, int CharIndex)/* overload */;
Inhaltsverzeichnis
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | TEncoding |
Beschreibung
Decodiert Bytes in eine Zeichenfolge.
TEncoding.GetChars erzeugt beim Decodieren von Bytes eine Anzahl von Zeichen.
Bytes kann ein Byte-Array oder ein Byte-Zeiger sein.
ByteIndex gibt das erste zu decodierende Byte an. Wenn der Parameter nicht vorhanden ist, ist der Index 0.
ByteCount gibt die Anzahl der zu decodierenden Bytes an. Wenn der Parameter nicht vorhanden ist, werden alle Bytes decodiert.
Chars ist ein Zeiger auf das Ziel der decodierten Zeichen.
CharIndex gibt an, wo in 'Chars' mit dem Schreiben der Ergebnisse begonnen werden soll.
Der Rückgabewert ist ein Zeichen-Array mit den decodierten Zeichen oder die Anzahl der decodierten Zeichen.