Data.DBXCommon.TDBXCommunicationLayer.Read

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Read(const Buffer: TArray<Byte>; const Offset: Integer; const Count: Integer): Integer; virtual; abstract;

C++

virtual int __fastcall Read(const System::DynamicArray<System::Byte> Buffer, const int Offset, const int Count) = 0 ;

Properties

Type Visibility Source Unit Parent
function public
Data.DBXCommon.pas
Data.DBXCommon.hpp
Data.DBXCommon TDBXCommunicationLayer

Description

Reads bytes into a buffer.

The Read method reads a number of bytes specified by the Count parameter into a TBytes buffer specified by the Buffer parameter. The Offset parameter specifies the offset from where the bytes are stored. It is expected to be zero. The Read method returns a value of -1 if any error occurs.

It is assumed that the buffer has enough memory allocated to hold the number of bytes specified by Count.

See Also