System.SysUtils.TEncoding.IsBufferValid

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

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 であるかを判断する場合に、特に関係します。

関連項目