System.SysUtils.BytesOf

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

Delphi

function BytesOf(const Val: RawByteString): TBytes;
function BytesOf(const Val: AnsiChar): TBytes;
function BytesOf(const Val: WideChar): TBytes;
function BytesOf(const Val: UnicodeString): TBytes;
function BytesOf(const Val: Pointer; const Len: Integer): TBytes;

C++

extern DELPHI_PACKAGE System::DynamicArray<System::Byte> __fastcall BytesOf(const System::RawByteString Val)/* overload */;

プロパティ

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

説明

文字列をバイト配列に変換します。

BytesOf を呼び出すと、文字列または文字をバイトの配列に変換できます。Unicode 文字列および WideString は、TEncoding クラスの Default プロパティによって示されるデフォルトのシステム ロケールを使用して変換されます。

関連項目