Base Framework
Public Member Functions | List of all members
PullInterface Class Referenceabstract

Pull interface. More...

#include <base/io/PullInterface.h>

Inherited by Deflater [virtual], Inflater [virtual], and OrbConnection.

Public Member Functions

virtual MemorySize pull (uint8 *buffer, MemorySize size)=0
 

Detailed Description

Pull interface.

Low-level pull interface for in-memory IO.

Version
1.0
Examples
testsuite/http.cpp.

Member Function Documentation

◆ pull()

virtual MemorySize PullInterface::pull ( uint8 *  buffer,
MemorySize  size 
)
pure virtual

Pulls up to the specified number of bytes from the stream.

Parameters
bufferThe buffer to receive the pulled bytes.
sizeThe number of bytes to pull.
Returns
The number of bytes pulled. 0 if the end of the stream has been reached.

Implemented in BZip2Deflater, ZLibDeflater, BZip2Inflater, ZLibInflater, and LocalConnection.