Data.DbxHTTPLayer.TDBXHTTPLayer.Read

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Data.DbxHTTPLayer.pas
Data.DbxHTTPLayer.hpp
Unit: Data.DbxHTTPLayer
Parent: TDBXHTTPLayer

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);

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