System.SysUtils.TEncoding.IsBufferValid

From RAD Studio API Documentation
Jump to: navigation, search

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 */;

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils TEncoding

Description

Verifies if a given buffer contains valid data for a given encoding. This is particularly relevant when you need to determine if a BOM-less text file is UTF-8 or ASCII.

See Also