System.Classes.TWriter.WriteVar
Delphi
procedure WriteVar(const Buffer: AnsiChar; Count: NativeInt); overload;
procedure WriteVar(const Buffer: Char; Count: NativeInt); overload;
procedure WriteVar(const Buffer: Int8; Count: NativeInt); overload;
procedure WriteVar(const Buffer: UInt8; Count: NativeInt); overload;
procedure WriteVar(const Buffer: Int16; Count: NativeInt); overload;
procedure WriteVar(const Buffer: UInt16; Count: NativeInt); overload;
procedure WriteVar(const Buffer: Int32; Count: NativeInt); overload;
procedure WriteVar(const Buffer: UInt32; Count: NativeInt); overload;
procedure WriteVar(const Buffer: Int64; Count: NativeInt); overload;
procedure WriteVar(const Buffer: UInt64; Count: NativeInt); overload;
procedure WriteVar(const Buffer: Single; Count: NativeInt); overload;
procedure WriteVar(const Buffer: Double; Count: NativeInt); overload;
procedure WriteVar(const Buffer: Extended; Count: NativeInt); overload;
procedure WriteVar(const Buffer: TExtended80Rec; Count: NativeInt); overload;
C++
void __fastcall WriteVar(const char Buffer, NativeInt Count)/* overload */;
void __fastcall WriteVar(const System::WideChar Buffer, NativeInt Count)/* overload */;
void __fastcall WriteVar(const System::Int8 Buffer, NativeInt Count)/* overload */;
void __fastcall WriteVar(const System::Byte Buffer, NativeInt Count)/* overload */;
void __fastcall WriteVar(const short Buffer, NativeInt Count)/* overload */;
void __fastcall WriteVar(const System::Word Buffer, NativeInt Count)/* overload */;
void __fastcall WriteVar(const int Buffer, NativeInt Count)/* overload */;
void __fastcall WriteVar(const unsigned Buffer, NativeInt Count)/* overload */;
void __fastcall WriteVar(const __int64 Buffer, NativeInt Count)/* overload */;
void __fastcall WriteVar(const unsigned __int64 Buffer, NativeInt Count)/* overload */;
void __fastcall WriteVar(const float Buffer, NativeInt Count)/* overload */;
void __fastcall WriteVar(const double Buffer, NativeInt Count)/* overload */;
void __fastcall WriteVar(const System::Extended Buffer, NativeInt Count)/* overload */;
void __fastcall WriteVar(const System::TExtended80Rec &Buffer, NativeInt Count)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Classes.pas System.Classes.hpp |
System.Classes | TWriter |
Description
Methods responsible for writing up to Count
bytes passed in the typed Buffer
parameter into the internal writer object's buffer.
WriteVar attempts to write up to Count
bytes. WriteVar writes byte-by-byte SizeOf(Buffer)
bytes passed in the typed Buffer
parameter. If Count > SizeOf(Buffer)
, then WriteVar writes bytes exceeded SizeOf(Buffer)
as $00
bytes.
WriteVar advances the current position in the internal buffer onto the Count
number of bytes.