System.SysUtils.WideBytesOf
Delphi
function WideBytesOf(const Value: UnicodeString): TBytes;
C++
extern DELPHI_PACKAGE System::DynamicArray<System::Byte> __fastcall WideBytesOf(const System::UnicodeString Value);
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 | 
|---|---|---|---|---|
| function | public | System.SysUtils.pas System.SysUtils.hpp  | 
        System.SysUtils | System.SysUtils | 
説明
Unicode 文字列をバイトの配列に変換します。
WideBytesOf を呼び出すと、Unicode 文字列をバイトの配列に変換できます。文字列は、TEncoding クラスの Unicode プロパティによって示される UTF-16 エンコードを使用して変換されます。
BytesOf ルーチンとは異なり、結果のバイトの配列では入力文字列の 1 つの文字に対して 2 バイトが使用されます。