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

#include <Concepts.h>

Inheritance diagram for trio::Writable:
Inheritance graph
Collaboration diagram for trio::Writable:
Collaboration graph

Public Member Functions

virtual std::size_t write (const char *source, std::size_t size)=0
 Writes bytes from the given buffer to the stream. More...
 
virtual std::size_t write (Readable *source, std::size_t size)=0
 Writes bytes from the given stream to this stream. More...
 

Protected Member Functions

virtual ~Writable ()
 

Constructor & Destructor Documentation

◆ ~Writable()

trio::Writable::~Writable ( )
protectedvirtualdefault

Member Function Documentation

◆ write() [1/2]

virtual std::size_t trio::Writable::write ( const char *  source,
std::size_t  size 
)
pure virtual

Writes bytes from the given buffer to the stream.

Parameters
sourceSource buffer from which the data is going to be written to the stream.
sizeNumber of bytes to write to the stream.
Returns
Number of bytes written.

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

Referenced by trio::FileStreamImpl::read(), trio::anonymous_namespace{MemoryStreamImpl.cpp}::MemoryReader::read(), and trio::MemoryStreamImpl::read().

◆ write() [2/2]

virtual std::size_t trio::Writable::write ( Readable source,
std::size_t  size 
)
pure virtual

Writes bytes from the given stream to this stream.

Parameters
sourceSource stream from which the data is going to be written into this stream.
sizeNumber of bytes to write to the stream.
Returns
Number of bytes written.

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


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