RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebRequestFileStream.Write Method

Introduces a pure virtual method for writing to the stream.

Pascal
function Write(const Buffer; Count: Longint): Longint; override;
C++
virtual __fastcall Longint Write(const  Buffer, Longint Count);

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!