System.SysUtils.TEncoding.IsBufferValid
Delphi
function IsBufferValid(const Bytes: Pointer; ByteCount: Integer): Boolean; overload; virtual;
function IsBufferValid(const Bytes: TBytes): Boolean; overload;
C++
virtual bool __fastcall IsBufferValid(const void * Bytes, int ByteCount)/* overload */;
bool __fastcall IsBufferValid(const TBytes Bytes)/* overload */;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | TEncoding |
説明
指定されたバッファに指定されたエンコーディングの有効なデータが含まれているかどうかを確認します。 これは、BOM なし テキスト ファイルが UTF-8 または ASCII であるかを判断する場合に、特に関係します。