Skip to content

Stream

#include <sbio/core/stream.hh>
template<class IO, class FTraits>
class Stream

Defined in src/lib/sbio/core/stream.hh:129

Inherits: IO

A light-weight wrapper over an IO engine.

The Stream abstraction provides access to the underlying IO mechanics by dispatching format-specific access patterns. The channel itself does not maintain state or own any memory buffers. These are provided by the callers in their requests.

Return Name Description
SBIO_HDReadResult read_at const inline
SBIO_HDReadResult read_span const inline
SBIO_HDReadResult read_unit_at const inline

const inline

inline SBIO_HDReadResult read_at(void * dest, hd_std::uint64_t offset, hd_std::size_t size) const

Defined in src/lib/sbio/core/stream.hh:135


const inline

inline SBIO_HDReadResult read_span(void * dest, hd_std::uint64_t offset, hd_std::size_t max) const

Defined in src/lib/sbio/core/stream.hh:141


const inline

inline SBIO_HDReadResult read_unit_at(void * dest, hd_std::size_t buf_size, hd_std::uint64_t offset) const

Defined in src/lib/sbio/core/stream.hh:154