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 */;
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
procedure function |
public | System.Classes.pas System.Classes.hpp |
System.Classes | TWriter |
Beschreibung
Methoden, die Count
-Bytes, die an den Buffer
-Parameter übergeben sind, an den internen Puffer des Writer-Objekts schreiben.
WriteVar versucht, Count
-Bytes zu schreiben. WriteVar schreibt Byte für Byte SizeOf(Buffer)
-Bytes , die an den Buffer
-Parameter übergeben sind. Wenn Count > SizeOf(Buffer)
, dann schreibt WriteVar Bytes-überschreitendes SizeOf(Buffer)
als $00
Bytes.
WriteVar setzt die aktuelle Position in dem Internen Puffer auf die Count
Anzahl von Bytes.