Data.DBXCommon.TDBXCommunicationLayer.Read
[–] Properties | |
---|---|
Type: function | |
Visibility: public | |
Source: Data.DBXCommon.pas Data.DBXCommon.hpp
| |
Unit: Data.DBXCommon | |
Parent: TDBXCommunicationLayer |
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 ;
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.