System.SysUtils.TEncoding.GetBytes

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function GetBytes(Chars: PChar; CharCount: Integer; Bytes: PByte; ByteCount: Integer): Integer; overload; virtual; abstract;
function GetBytes(const Chars: Char): TBytes; overload; inline;
function GetBytes(const Chars: array of Char): TBytes; overload;
function GetBytes(const Chars: TCharArray): TBytes; overload;
function GetBytes(const Chars: array of Char; CharIndex, CharCount: Integer): TBytes; overload;
function GetBytes(const Chars: TCharArray; CharIndex, CharCount: Integer): TBytes; overload;
function GetBytes(const Chars: array of Char; CharIndex, CharCount: Integer;  const Bytes: TBytes; ByteIndex: Integer): Integer; overload;
function GetBytes(const Chars: TCharArray; CharIndex, CharCount: Integer;  const Bytes: TBytes; ByteIndex: Integer): Integer; overload;
function GetBytes(const S: string): TBytes; overload;
function GetBytes(const S: string; CharIndex, CharCount: Integer;  const Bytes: TBytes; ByteIndex: Integer): Integer; overload;

C++

virtual int __fastcall GetBytes(System::WideChar * Chars, int CharCount, System::PByte Bytes, int ByteCount) = 0 /* overload */;
System::DynamicArray<System::Byte> __fastcall GetBytes(const System::WideChar Chars)/* overload */;
System::DynamicArray<System::Byte> __fastcall GetBytes(System::WideChar const *Chars, const int Chars_High)/* overload */;
System::DynamicArray<System::Byte> __fastcall GetBytes(const System::DynamicArray<System::WideChar> Chars)/* overload */;
System::DynamicArray<System::Byte> __fastcall GetBytes(System::WideChar const *Chars, const int Chars_High, int CharIndex, int CharCount)/* overload */;
System::DynamicArray<System::Byte> __fastcall GetBytes(const System::DynamicArray<System::WideChar> Chars, int CharIndex, int CharCount)/* overload */;
int __fastcall GetBytes(System::WideChar const *Chars, const int Chars_High, int CharIndex, int CharCount, const System::DynamicArray<System::Byte> Bytes, int ByteIndex)/* overload */;
int __fastcall GetBytes(const System::DynamicArray<System::WideChar> Chars, int CharIndex, int CharCount, const System::DynamicArray<System::Byte> Bytes, int ByteIndex)/* overload */;
System::DynamicArray<System::Byte> __fastcall GetBytes(const System::UnicodeString S)/* overload */;
int __fastcall GetBytes(const System::UnicodeString S, int CharIndex, int CharCount, const System::DynamicArray<System::Byte> Bytes, int ByteIndex)/* overload */;

プロパティ

種類 可視性 ソース ユニット
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils TEncoding

説明

バイト セットを一連のバイトにエンコードします。

TEncoding.GetBytes は、Chars パラメータを一連のバイトにエンコードします。

Chars は、一連のバイトにエンコードされる文字配列または文字ポインタです。

S は、一連のバイトにエンコードされる UnicodeString 型の文字列です。

CharCount パラメータは、エンコードする文字数を指定します。

Bytes は、一連のバイトを書き込むを位置を指定します。

ByteCount は、指定した位置に書き込める最大バイト数です。

戻り値 は、実際にエンコードされた、または、実際の一連のバイト TBytes のバイト数です。

関連項目