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); }
Inhaltsverzeichnis
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
function | class protected public |
System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | TUnicodeEncoding |
Beschreibung
Decodiert Bytes in eine Zeichenfolge.
System.SysUtils.TUnicodeEncoding.GetChars erbt von System.SysUtils.TEncoding.GetChars. Der folgende Inhalt bezieht sich auf System.SysUtils.TEncoding.GetChars.
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.