Project Alice
Loading...
Searching...
No Matches
serialization::in_buffer Class Reference

#include <stools.hpp>

Public Member Functions

 in_buffer (char const *data, size_t size)
 
 in_buffer (char const *data, size_t size, size_t read_position)
 
 operator bool () const noexcept
 
char const * view_data () const
 
size_t view_size () const
 
size_t view_read_position () const
 
template<typename T >
read ()
 
template<typename T >
void read (T &out)
 
template<typename T >
std::span< T const > read_fixed (size_t count)
 
template<typename T >
std::span< T const > read_variable ()
 
in_buffer read_relocation ()
 
in_buffer read_section ()
 
template<>
std::string_view read ()
 
template<>
std::wstring_view read ()
 
void read (std::string &out)
 
void read (std::wstring &out)
 

Detailed Description

Definition at line 105 of file stools.hpp.

Constructor & Destructor Documentation

◆ in_buffer() [1/2]

serialization::in_buffer::in_buffer ( char const *  data,
size_t  size 
)
inline

Definition at line 111 of file stools.hpp.

◆ in_buffer() [2/2]

serialization::in_buffer::in_buffer ( char const *  data,
size_t  size,
size_t  read_position 
)
inline

Definition at line 112 of file stools.hpp.

Member Function Documentation

◆ operator bool()

serialization::in_buffer::operator bool ( ) const
inlinenoexcept

Definition at line 115 of file stools.hpp.

◆ read() [1/6]

template<typename T >
T serialization::in_buffer::read ( )
inline

Definition at line 130 of file stools.hpp.

Here is the caller graph for this function:

◆ read() [2/6]

template<>
std::string_view serialization::in_buffer::read ( )
inline

Definition at line 169 of file stools.hpp.

◆ read() [3/6]

template<>
std::wstring_view serialization::in_buffer::read ( )
inline

Definition at line 174 of file stools.hpp.

◆ read() [4/6]

void serialization::in_buffer::read ( std::string &  out)
inline

Definition at line 178 of file stools.hpp.

◆ read() [5/6]

void serialization::in_buffer::read ( std::wstring &  out)
inline

Definition at line 182 of file stools.hpp.

◆ read() [6/6]

template<typename T >
void serialization::in_buffer::read ( T &  out)
inline

Definition at line 139 of file stools.hpp.

◆ read_fixed()

template<typename T >
std::span< T const > serialization::in_buffer::read_fixed ( size_t  count)
inline

Definition at line 147 of file stools.hpp.

◆ read_relocation()

in_buffer serialization::in_buffer::read_relocation ( )
inline

Definition at line 158 of file stools.hpp.

◆ read_section()

in_buffer serialization::in_buffer::read_section ( )
inline

Definition at line 162 of file stools.hpp.

Here is the caller graph for this function:

◆ read_variable()

template<typename T >
std::span< T const > serialization::in_buffer::read_variable ( )
inline

Definition at line 154 of file stools.hpp.

◆ view_data()

char const * serialization::in_buffer::view_data ( ) const
inline

Definition at line 119 of file stools.hpp.

◆ view_read_position()

size_t serialization::in_buffer::view_read_position ( ) const
inline

Definition at line 125 of file stools.hpp.

Here is the caller graph for this function:

◆ view_size()

size_t serialization::in_buffer::view_size ( ) const
inline

Definition at line 122 of file stools.hpp.


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