Datasnap.Win.SConnect.IDataBlock.Write

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Write(const Buffer; Count: Integer): Integer; stdcall;

C++

virtual int __stdcall Write(const 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

Writes a specified number of bytes from a buffer.

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.

See Also