System.Classes.TBinaryWriter.Write

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

procedure Write(Value: Byte); overload; virtual;
procedure Write(Value: Boolean); overload; virtual;
procedure Write(Value: Char); overload; virtual;
procedure Write(const Value: TCharArray); overload; virtual;
procedure Write(const Value: TBytes); overload; virtual;
procedure Write(Value: Double); overload; virtual;
procedure Write(Value: Integer); overload; virtual;
procedure Write(Value: SmallInt); overload; virtual;
procedure Write(Value: ShortInt); overload; virtual;
procedure Write(Value: Word); overload; virtual;
procedure Write(Value: Cardinal); overload; virtual;
procedure Write(Value: Int64); overload; virtual;
procedure Write(Value: Single); overload; virtual;
procedure Write(const Value: string); overload; virtual;
procedure Write(Value: UInt64); overload; virtual;
procedure Write(const Value: TCharArray; Index, Count: Integer); overload; virtual;
procedure Write(const Value: TBytes; Index, Count: Integer); overload; virtual;

C++

virtual void __fastcall Write(System::Byte Value)/* overload */;
virtual void __fastcall Write(bool Value)/* overload */;
virtual void __fastcall Write(System::WideChar Value)/* overload */;
virtual void __fastcall Write(const System::DynamicArray<System::WideChar> Value)/* overload */;
virtual void __fastcall Write(const System::DynamicArray<System::Byte> Value)/* overload */;
virtual void __fastcall Write(double Value)/* overload */;
virtual void __fastcall Write(int Value)/* overload */;
virtual void __fastcall Write(short Value)/* overload */;
virtual void __fastcall Write(System::Int8 Value)/* overload */;
virtual void __fastcall Write(System::Word Value)/* overload */;
virtual void __fastcall Write(unsigned Value)/* overload */;
virtual void __fastcall Write(__int64 Value)/* overload */;
virtual void __fastcall Write(float Value)/* overload */;
virtual void __fastcall Write(const System::UnicodeString Value)/* overload */;
virtual void __fastcall Write(unsigned __int64 Value)/* overload */;
virtual void __fastcall Write(const System::DynamicArray<System::WideChar> Value, int Index, int Count)/* overload */;
virtual void __fastcall Write(const System::DynamicArray<System::Byte> Value, int Index, int Count)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Classes.pas
System.Classes.hpp
System.Classes TBinaryWriter

Description

Writes data to the underlying stream. Use Write to write data to the stream.

There are Write overloaded methods for each supported type and, also, two methods that allow you to write a single element from a Char array or a Byte array. These two methods write Count elements starting with the Index position from a Value Char array (TCharArray) or Byte array (TBytes).

The supported types are:

See Also

Code Examples