RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataBlock.Read Method

Reads a specified number of bytes into a buffer.

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

Call Read to copy the contents stored in the memory buffer to the buffer supplied by the Buffer parameter. Read reads up to Count bytes and returns the number of bytes actually read. 

The first call to Read begins reading from Memory at the first position after the reserved bytes. Subsequent calls begin reading at the point where the last call to Read 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!