Datasnap.Win.SConnect.IDataBlock.Read

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Read(var Buffer; Count: Integer): Integer; stdcall;

C++

virtual int __stdcall Read(void *Buffer, int Count) = 0 ;

Properties

Type Visibility Source Unit Parent
function public
Datasnap.Win.SConnect.pas
Datasnap.Win.SConnect.hpp
Datasnap.Win.SConnect IDataBlock

Description

Reads a specified number of bytes into a buffer.

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.

See Also