Display Preferences
System.Classes.TStream.Write
From XE2 API Documentation
Delphi
function Write(const Buffer; Count: Longint): Longint; virtual; abstract;
C++
virtual int __fastcall Write(const void *Buffer, int Count) = 0 ;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.Classes.pas System.Classes.hpp |
System.Classes | TStream |
Description
Introduces a pure virtual method for writing to the stream.
Each descendent stream object defines a Write method that writes data to its particular storage medium (such as memory or a disk file). Write attempts to write up to Count bytes from Buffer, and returns the number of bytes actually written.
All the other data-writing methods of a stream (WriteBuffer, WriteComponent) call Write to do their actual writing.