Web.HTTPApp.EncodingGetBytes
Delphi
function EncodingGetBytes(const AContentType: AnsiString; const AValue: string): TBytes;
C++
extern DELPHI_PACKAGE System::DynamicArray<System::Byte> __fastcall EncodingGetBytes(const System::AnsiString AContentType, const System::UnicodeString AValue);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | Web.HTTPApp.pas Web.HTTPApp.hpp |
Web.HTTPApp | Web.HTTPApp |
説明
コンテンツ タイプのエンコードに基づいて文字列をエンコードし、バイトの配列に格納します。
EncodingGetBytes は、AContentType
からコンテンツ タイプのエンコード(UTF-8 または ANSI)を取り出し、文字列 AValue
をエンコードして対応するバイト配列に格納します。
逆の働きをする関数は EncodingGetString です。