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, 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 */;
Eigenschaften
| Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
|---|---|---|---|---|
procedure function |
public | System.Classes.pas System.Classes.hpp |
System.Classes | TReader |
Beschreibung
Methoden, die für das Einlesen von bis zu Count Byte aus dem internen Puffer des Reader-Objekts in den angegebenen typisierten Parameter Buffer zuständig sind.
Wenn ReadVar nicht Count Byte lesen kann, dann wird die Exception EReadError ausgelöst.
ReadVar setzt die aktuelle Position im internen Puffer um Count Byte nach vorne.