wren
Vulkan-based game engine
Loading...
Searching...
No Matches
wren::utils::BinaryReader Class Reference

#include <binary_reader.hpp>

Public Member Functions

 BinaryReader (const std::span< const std::byte > &data)
void skip (size_t byte_count)
template<typename T>
auto read ()
template<typename T, std::size_t N>
auto read_list ()
auto at_end ()

Private Attributes

std::span< const std::byte > data_
std::span< conststd::byte >::iterator pos_

Constructor & Destructor Documentation

◆ BinaryReader()

wren::utils::BinaryReader::BinaryReader ( const std::span< const std::byte > & data)
inline

Member Function Documentation

◆ at_end()

auto wren::utils::BinaryReader::at_end ( )
inline
Here is the caller graph for this function:

◆ read()

template<typename T>
auto wren::utils::BinaryReader::read ( )
inline
Here is the caller graph for this function:

◆ read_list()

template<typename T, std::size_t N>
auto wren::utils::BinaryReader::read_list ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ skip()

void wren::utils::BinaryReader::skip ( size_t byte_count)
inline
Here is the caller graph for this function:

Member Data Documentation

◆ data_

std::span<const std::byte> wren::utils::BinaryReader::data_
private

◆ pos_

std::span<conststd::byte>::iterator wren::utils::BinaryReader::pos_
private

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