System.Classes.TReader.ReadVar
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, System::NativeInt Count)/* overload */;
void __fastcall ReadVar(System::WideChar &Buffer, System::NativeInt Count)/* overload */;
void __fastcall ReadVar(System::Int8 &Buffer, System::NativeInt Count)/* overload */;
void __fastcall ReadVar(System::UInt8 &Buffer, System::NativeInt Count)/* overload */;
void __fastcall ReadVar(System::Int16 &Buffer, System::NativeInt Count)/* overload */;
void __fastcall ReadVar(System::UInt16 &Buffer, System::NativeInt Count)/* overload */;
void __fastcall ReadVar(System::Int32 &Buffer, System::NativeInt Count)/* overload */;
void __fastcall ReadVar(System::UInt32 &Buffer, System::NativeInt Count)/* overload */;
void __fastcall ReadVar(__int64 &Buffer, System::NativeInt Count)/* overload */;
void __fastcall ReadVar(unsigned __int64 &Buffer, System::NativeInt Count)/* overload */;
void __fastcall ReadVar(float &Buffer, System::NativeInt Count)/* overload */;
void __fastcall ReadVar(double &Buffer, System::NativeInt Count)/* overload */;
void __fastcall ReadVar(System::Extended &Buffer, System::NativeInt Count)/* overload */;
void __fastcall ReadVar(System::TExtended80Rec &Buffer, System::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.