scclib
Stable Cloud Computing C++ Library
Public Member Functions | List of all members
scc::util::Reader Struct Referenceabstract

Interface class for objects which can be read. More...

#include <iobase.h>

Inheritance diagram for scc::util::Reader:
Inheritance graph
[legend]

Public Member Functions

virtual size_t read (void *, size_t)=0
 Read interface. More...
 

Detailed Description

Interface class for objects which can be read.

Examples
util/unittest/iohelper.cc, and util/unittest/iostream.cc.

Definition at line 66 of file iobase.h.

Member Function Documentation

◆ read()

virtual size_t scc::util::Reader::read ( void *  ,
size_t   
)
pure virtual

Read interface.

Read a block of data to a maximum. Return number of bytes read.

Implemented in scc::util::RwLoopBuffer, scc::util::FlowThroughPipelineReader, scc::net::TcpSocket, scc::crypto::HashReader, scc::util::ReadTimer, and scc::util::ReadCounter.


The documentation for this struct was generated from the following file: