RAD Studio VCL Reference
TStream.Write Method

Introduces a pure virtual method for writing to the stream.

function Write(const Buffer; Count: Longint): Longint; virtual; abstract;
virtual __fastcall Longint Write(const  Buffer, Longint Count) = 0;

Each descendant 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. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!