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 */;
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 |
|---|---|---|---|---|
procedure function |
public | System.Classes.pas System.Classes.hpp |
System.Classes | TWriter |
説明
型付き Buffer パラメータで渡された Count バイトまでを、ライタ オブジェクトの内部バッファに書き込む役割を担うメソッド。
WriteVar は、Count バイトまで書き込もうとします。WriteVar は、型付き Buffer パラメータで渡された SizeOf(Buffer) バイトを、バイト単位で書き込みます。Count > SizeOf(Buffer) になったら、WriteVar は、SizeOf(Buffer) を超えるバイトの分を、$00 バイトとして書き込みます。
WriteVar は、内部バッファにおける現在の位置を、Count バイト数、進めます。