RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IDataBlock.Write Method

Writes a specified number of bytes from a buffer.

Pascal
function Write(const Buffer; Count: Integer): Integer; stdcall;
C++
__fastcall __stdcall int Write(const  Buffer, int Count);

Call Write to copy the contents of the buffer supplied as the Buffer parameter to the next position in Memory. Write writes up to Count bytes and returns the number of bytes actually written. 

The first call to Write begins writing to Memory at the first position after the reserved bytes. Subsequent calls begin writing at the point where the last call to Write left off.

Note: The Count parameter should specify a value less than or equal to Size - BytesReserved.
 

 

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