System.Classes.TReader.ReadVar

From RAD Studio API Documentation
Jump to: navigation, search

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

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Classes.pas
System.Classes.hpp
System.Classes TReader

Description

Methods responsible for reading up to Count bytes from the internal reader object's buffer into the specified typed Buffer parameter.

If ReadVar cannot read Count bytes, then the EReadError exception is raised.

ReadVar advances the current position in the internal buffer onto the Count number of bytes.

See Also