System.Classes.TReader.ReadVar

De RAD Studio API Documentation
Aller à : navigation, rechercher

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

Propriétés

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


Description

Méthodes responsables de lire jusqu'à Count octets depuis le tampon interne de l'objet lecteur vers le paramètre Buffer du type spécifié.

Si ReadVar ne peut pas lire Count octets, l'exception EReadError est déclenchée.

ReadVar avance la position en cours dans le tampon interne du nombre d'octets Count.

Voir aussi