denigma 4.0.0
Loading...
Searching...
No Matches
denigma::IRandomAccessReader Class Referenceabstract

Random-access byte reader used for container formats such as MUSX. More...

#include <random_access_reader.h>

Inheritance diagram for denigma::IRandomAccessReader:

Public Member Functions

virtual std::uint64_t size () const =0
 Returns the total readable byte count.
 
virtual std::size_t readAt (std::uint64_t offset, std::span< std::byte > output) const =0
 Reads up to output.size() bytes from offset and returns the number of bytes read.
 

Detailed Description

Random-access byte reader used for container formats such as MUSX.

Member Function Documentation

◆ readAt()

virtual std::size_t denigma::IRandomAccessReader::readAt ( std::uint64_t  offset,
std::span< std::byte >  output 
) const
pure virtual

Reads up to output.size() bytes from offset and returns the number of bytes read.

Implemented in denigma::FileRandomAccessReader, and denigma::BufferRandomAccessReader.

◆ size()

virtual std::uint64_t denigma::IRandomAccessReader::size ( ) const
pure virtual

Returns the total readable byte count.

Implemented in denigma::FileRandomAccessReader, and denigma::BufferRandomAccessReader.


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