pstore2
Public Member Functions | List of all members
pstore::serialize::archive::buffer_reader Class Reference

An archive-reader which consumes data from a supplied pointer range. More...

#include <archive.hpp>

Public Member Functions

constexpr buffer_reader (void const *const first, void const *const last) noexcept
 Constructs the writer using a pair of pointer to define the range [first, last).
 
constexpr buffer_reader (void const *const first, std::size_t const size) noexcept
 Constructs the writer using a pointer and size to define the range [first, first+size). More...
 
template<typename SpanType >
 buffer_reader (SpanType const span) noexcept
 Constructs the writer using a pointer and size to define the range [first, first+size). More...
 
template<typename T >
get ()
 Reads a single instance of a standard-layout type T from the input iterator and returns the value extracted. More...
 

Detailed Description

An archive-reader which consumes data from a supplied pointer range.

Constructor & Destructor Documentation

◆ buffer_reader() [1/2]

constexpr pstore::serialize::archive::buffer_reader::buffer_reader ( void const *const  first,
std::size_t const  size 
)
inlinenoexcept

Constructs the writer using a pointer and size to define the range [first, first+size).

◆ buffer_reader() [2/2]

template<typename SpanType >
pstore::serialize::archive::buffer_reader::buffer_reader ( SpanType const  span)
inlineexplicitnoexcept

Constructs the writer using a pointer and size to define the range [first, first+size).

Member Function Documentation

◆ get()

template<typename T >
T pstore::serialize::archive::buffer_reader::get ( )
inline

Reads a single instance of a standard-layout type T from the input iterator and returns the value extracted.


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