System.Classes.TStream.ReadBufferData
Delphi
procedure ReadBufferData(var Buffer: Boolean); overload;
procedure ReadBufferData(var Buffer: Boolean; Count: NativeInt); overload;
procedure ReadBufferData(var Buffer: AnsiChar); overload;
procedure ReadBufferData(var Buffer: AnsiChar; Count: NativeInt); overload;
procedure ReadBufferData(var Buffer: Char); overload;
procedure ReadBufferData(var Buffer: Char; Count: NativeInt); overload;
procedure ReadBufferData(var Buffer: Int8); overload;
procedure ReadBufferData(var Buffer: Int8; Count: NativeInt); overload;
procedure ReadBufferData(var Buffer: UInt8); overload;
procedure ReadBufferData(var Buffer: UInt8; Count: NativeInt); overload;
procedure ReadBufferData(var Buffer: Int16); overload;
procedure ReadBufferData(var Buffer: Int16; Count: NativeInt); overload;
procedure ReadBufferData(var Buffer: UInt16); overload;
procedure ReadBufferData(var Buffer: UInt16; Count: NativeInt); overload;
procedure ReadBufferData(var Buffer: Int32); overload;
procedure ReadBufferData(var Buffer: Int32; Count: NativeInt); overload;
procedure ReadBufferData(var Buffer: UInt32); overload;
procedure ReadBufferData(var Buffer: UInt32; Count: NativeInt); overload;
procedure ReadBufferData(var Buffer: Int64); overload;
procedure ReadBufferData(var Buffer: Int64; Count: NativeInt); overload;
procedure ReadBufferData(var Buffer: UInt64); overload;
procedure ReadBufferData(var Buffer: UInt64; Count: NativeInt); overload;
procedure ReadBufferData(var Buffer: Single); overload;
procedure ReadBufferData(var Buffer: Single; Count: NativeInt); overload;
procedure ReadBufferData(var Buffer: Double); overload;
procedure ReadBufferData(var Buffer: Double; Count: NativeInt); overload;
procedure ReadBufferData(var Buffer: Extended); overload;
procedure ReadBufferData(var Buffer: Extended; Count: NativeInt); overload;
procedure ReadBufferData(var Buffer: TExtended80Rec); overload;
procedure ReadBufferData(var Buffer: TExtended80Rec; Count: NativeInt); overload;
C++
void __fastcall ReadBufferData(bool &Buffer)/* overload */;
void __fastcall ReadBufferData(bool &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadBufferData(char &Buffer)/* overload */;
void __fastcall ReadBufferData(char &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadBufferData(System::WideChar &Buffer)/* overload */;
void __fastcall ReadBufferData(System::WideChar &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadBufferData(System::Int8 &Buffer)/* overload */;
void __fastcall ReadBufferData(System::Int8 &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadBufferData(System::Byte &Buffer)/* overload */;
void __fastcall ReadBufferData(System::Byte &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadBufferData(short &Buffer)/* overload */;
void __fastcall ReadBufferData(short &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadBufferData(System::Word &Buffer)/* overload */;
void __fastcall ReadBufferData(System::Word &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadBufferData(int &Buffer)/* overload */;
void __fastcall ReadBufferData(int &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadBufferData(unsigned &Buffer)/* overload */;
void __fastcall ReadBufferData(unsigned &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadBufferData(__int64 &Buffer)/* overload */;
void __fastcall ReadBufferData(__int64 &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadBufferData(unsigned __int64 &Buffer)/* overload */;
void __fastcall ReadBufferData(unsigned __int64 &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadBufferData(float &Buffer)/* overload */;
void __fastcall ReadBufferData(float &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadBufferData(double &Buffer)/* overload */;
void __fastcall ReadBufferData(double &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadBufferData(System::Extended &Buffer)/* overload */;
void __fastcall ReadBufferData(System::Extended &Buffer, NativeInt Count)/* overload */;
void __fastcall ReadBufferData(System::TExtended80Rec &Buffer)/* overload */;
void __fastcall ReadBufferData(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 | TStream |
Description
Méthodes responsables de lire jusqu'à Count
fixe le nombre d'octets SizeOf(Buffer)
du flux vers Buffer
.
Utilisez ReadBufferData pour lire exactement le Count
fixe ou le nombre d'octets SizeOf(Buffer)
du flux vers un Buffer
typé. ReadBufferData déclenche une exception EReadError si ReadBufferData ne peut pas lire exactement le nombre d'octets spécifié.
ReadBufferData fonctionne en utilisant les algorithmes suivants :
- Si ReadBufferData ne contient pas le paramètre
Count
, ReadBufferData essaie de lire le nombre d'octetsSizeOf(Buffer)
, puis avance la position en cours dans le flux du nombre d'octets transférés. Si le nombre d'octets transférés n'est pas= SizeOf(Buffer)
, ReadBufferData déclenche une exception EReadError. - Si ReadBufferData contient le paramètre
Count
, ReadBufferData appelle ReadData pour lire les octetsCount
. Si le nombre d'octets transférés signalé n'est pas égal àCount
, ReadBufferData déclenche une exception EReadError.
ReadBufferData appelle ReadData pour effectuer la lecture réelle.