Data.DbxHTTPLayer.TDBXHTTPLayer.Read

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

Type Visibility Source Unit Parent
function public
Data.DbxHTTPLayer.pas
Data.DbxHTTPLayer.hpp
Data.DbxHTTPLayer TDBXHTTPLayer

Description

Reads a number of bytes in the byte buffer.

The Read method reads Count bytes into the byte buffer specified by the Buffer parameter. Offset represents the offset from where the bytes are stored; it is expected to be 0 (zero).

Read returns the actual read byte count. If an error occurs, Read returns -1.

See Also