System.SysUtils.TBigEndianUnicodeEncoding.GetBytes

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

function GetBytes(Chars: PChar; CharCount: Integer; Bytes: PByte; ByteCount: Integer): Integer; overload; override;

C++

virtual int __fastcall GetBytes(System::WideChar * Chars, int CharCount, System::PByte Bytes, int ByteCount)/* overload */;
inline System::DynamicArray<System::Byte> __fastcall  GetBytes(const System::WideChar Chars){ return TEncoding::GetBytes(Chars); }
inline System::DynamicArray<System::Byte> __fastcall  GetBytes(const System::WideChar *Chars, const int Chars_High){ return TEncoding::GetBytes(Chars, Chars_High); }
inline System::DynamicArray<System::Byte> __fastcall  GetBytes(const System::DynamicArray<System::WideChar> Chars){ return TEncoding::GetBytes(Chars); }
inline System::DynamicArray<System::Byte> __fastcall  GetBytes(const System::WideChar *Chars, const int Chars_High, int CharIndex, int CharCount){ return TEncoding::GetBytes(Chars, Chars_High, CharIndex, CharCount); }
inline System::DynamicArray<System::Byte> __fastcall  GetBytes(const System::DynamicArray<System::WideChar> Chars, int CharIndex, int CharCount){ return TEncoding::GetBytes(Chars, CharIndex, CharCount); }
inline int __fastcall  GetBytes(const System::WideChar *Chars, const int Chars_High, int CharIndex, int CharCount, const System::DynamicArray<System::Byte> Bytes, int ByteIndex){ return TEncoding::GetBytes(Chars, Chars_High, CharIndex, CharCount, Bytes, ByteIndex); }
inline int __fastcall  GetBytes(const System::DynamicArray<System::WideChar> Chars, int CharIndex, int CharCount, const System::DynamicArray<System::Byte> Bytes, int ByteIndex){ return TEncoding::GetBytes(Chars, CharIndex, CharCount, Bytes, ByteIndex); }
inline System::DynamicArray<System::Byte> __fastcall  GetBytes(const System::UnicodeString S){ return TEncoding::GetBytes(S); }
inline int __fastcall  GetBytes(const System::UnicodeString S, int CharIndex, int CharCount, const System::DynamicArray<System::Byte> Bytes, int ByteIndex){ return TEncoding::GetBytes(S, CharIndex, CharCount, Bytes, ByteIndex); }
inline int __fastcall  GetBytes(const System::UnicodeString S, int CharIndex, int CharCount, const System::DynamicArray<System::Byte> Bytes, int ByteIndex, const int StringBaseIndex){ return TEncoding::GetBytes(S, CharIndex, CharCount, Bytes, ByteIndex, StringBaseIndex); }

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
function
class protected
public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils TBigEndianUnicodeEncoding

Beschreibung

Codiert Zeichen in eine Folge von Bytes.

GetBytes codiert einen Chars-Parameter in eine Folge von Bytes. Die folgende Tabelle enthält die von dieser Methode erwarteten Parameter und deren Beschreibung.



Parameter Beschreibung

Chars

Ein Zeichen-Array oder ein Zeichenzeiger, das oder der in eine Byte-Folge codiert werden soll.

CharCount

Gibt die Anzahl der zu codierenden Zeichen an.

Bytes

Gibt die Position an, an der die Byte-Folge geschrieben werden soll.

ByteCount

Die maximale Byte-Anzahl, die an der angegebenen Position geschrieben werden kann.



Der Rückgabewert ist die Anzahl der tatsächlich codierten Bytes oder die TBytes-Folge.

Siehe auch