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

#include <binray_reader.hpp>

Public Member Functions

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

Private Attributes

std::span< uint8_t > data_
 
std::span< uint8_t >::iterator pos_
 

Constructor & Destructor Documentation

◆ BinaryReader()

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

Member Function Documentation

◆ 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 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<uint8_t> wren::utils::BinaryReader::data_
private

◆ pos_

std::span<uint8_t>::iterator wren::utils::BinaryReader::pos_
private

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