System.Classes.TReader.ReadVar

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

Delphi

procedure ReadVar(var Buffer: AnsiChar; Count: NativeInt); overload;
procedure ReadVar(var Buffer: Char; Count: NativeInt); overload;
procedure ReadVar(var Buffer: Int8; Count: NativeInt); overload;
procedure ReadVar(var Buffer: UInt8; Count: NativeInt); overload;
procedure ReadVar(var Buffer: Int16; Count: NativeInt); overload;
procedure ReadVar(var Buffer: UInt16; Count: NativeInt); overload;
procedure ReadVar(var Buffer: Int32; Count: NativeInt); overload;
procedure ReadVar(var Buffer: UInt32; Count: NativeInt); overload;
procedure ReadVar(var Buffer: Int64; Count: NativeInt); overload;
procedure ReadVar(var Buffer: UInt64; Count: NativeInt); overload;
procedure ReadVar(var Buffer: Single; Count: NativeInt); overload;
procedure ReadVar(var Buffer: Double; Count: NativeInt); overload;
procedure ReadVar(var Buffer: Extended; Count: NativeInt); overload;
procedure ReadVar(var Buffer: TExtended80Rec; Count: NativeInt); overload;

C++

void __fastcall ReadVar(char &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadVar(System::WideChar &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadVar(System::Int8 &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadVar(System::Byte &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadVar(short &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadVar(System::Word &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadVar(int &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadVar(unsigned &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadVar(__int64 &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadVar(unsigned __int64 &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadVar(float &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadVar(double &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadVar(System::Extended &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadVar(System::TExtended80Rec &Buffer, NativeInt Count)/* overload */;

プロパティ

種類 可視性 ソース ユニット
procedure
function
public
System.Classes.pas
System.Classes.hpp
System.Classes TReader


説明

内部のリーダー オブジェクトのバッファから最大 Count バイト分を読み取り、指定された型の Buffer パラメータに格納するためのメソッド群です。

ReadVarCount バイト分を読み取れない場合は、EReadError 例外が発生します。

ReadVar では、内部バッファ内の現在位置を Count バイト分だけ先に進めます。

関連項目