RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
THandleStream.Write Method

Writes Count bytes from the Buffer to the current position in the resource.

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

Use Write to write Count bytes to the resource associated with the handle stream, starting at the current position. After writing to the resource, Write advances the current position by the number bytes written, and returns the number of bytes written. 

All other data-writing methods of a handle stream (WriteBuffer, WriteComponent) call Write to do the actual writing. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!