Stream
Stream
Section titled “Stream”#include <sbio/core/stream.hh>template<class IO, class FTraits>class StreamDefined 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.
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
SBIO_HDReadResult |
read_at const inline |
|
SBIO_HDReadResult |
read_span const inline |
|
SBIO_HDReadResult |
read_unit_at const inline |
read_at
Section titled “read_at”const inline
inline SBIO_HDReadResult read_at(void * dest, hd_std::uint64_t offset, hd_std::size_t size) constDefined in src/lib/sbio/core/stream.hh:135
read_span
Section titled “read_span”const inline
inline SBIO_HDReadResult read_span(void * dest, hd_std::uint64_t offset, hd_std::size_t max) constDefined in src/lib/sbio/core/stream.hh:141
read_unit_at
Section titled “read_unit_at”const inline
inline SBIO_HDReadResult read_unit_at(void * dest, hd_std::size_t buf_size, hd_std::uint64_t offset) constDefined in src/lib/sbio/core/stream.hh:154