DNA Calib 1.1
Project brief
Public Member Functions | Protected Member Functions | List of all members
trio::Readable Class Referenceabstract

#include <Concepts.h>

Inheritance diagram for trio::Readable:
Inheritance graph
Collaboration diagram for trio::Readable:
Collaboration graph

Public Member Functions

virtual std::size_t read (char *destination, std::size_t size)=0
 Read bytes from stream into the given buffer. More...
 
virtual std::size_t read (Writable *destination, std::size_t size)=0
 Read bytes from this stream into the given stream. More...
 

Protected Member Functions

virtual ~Readable ()
 

Constructor & Destructor Documentation

◆ ~Readable()

trio::Readable::~Readable ( )
protectedvirtualdefault

Member Function Documentation

◆ read() [1/2]

virtual std::size_t trio::Readable::read ( char *  destination,
std::size_t  size 
)
pure virtual

Read bytes from stream into the given buffer.

Parameters
destinationDestination buffer into which the data is going to be read from the stream.
sizeNumber of bytes to read from stream.
Returns
Number of bytes read.

Implemented in trio::FileStreamImpl, trio::MemoryMappedFileStreamFallback, trio::anonymous_namespace{MemoryStreamImpl.cpp}::MemoryReader, and trio::MemoryStreamImpl.

Referenced by trio::FileStreamImpl::write(), trio::anonymous_namespace{MemoryStreamImpl.cpp}::MemoryWriter::write(), and trio::MemoryStreamImpl::write().

◆ read() [2/2]

virtual std::size_t trio::Readable::read ( Writable destination,
std::size_t  size 
)
pure virtual

Read bytes from this stream into the given stream.

Parameters
destinationDestination stream into which the data is going to be read from this stream.
sizeNumber of bytes to read from stream.
Returns
Number of bytes read.

Implemented in trio::FileStreamImpl, trio::MemoryMappedFileStreamFallback, trio::anonymous_namespace{MemoryStreamImpl.cpp}::MemoryReader, and trio::MemoryStreamImpl.


The documentation for this class was generated from the following files: