Autoware.Auto
autoware::common::helper_functions::ByteReader Class Reference

A utility class to read byte vectors in big-endian order. More...

#include <byte_reader.hpp>

Public Member Functions

 ByteReader (const std::vector< uint8_t > &byte_vector)
 Default constructor, byte reader class. More...
 
template<typename T >
void read (T &value)
 
void skip (std::size_t count)
 

Detailed Description

A utility class to read byte vectors in big-endian order.

Constructor & Destructor Documentation

◆ ByteReader()

autoware::common::helper_functions::ByteReader::ByteReader ( const std::vector< uint8_t > &  byte_vector)
inlineexplicit

Default constructor, byte reader class.

Parameters
[in]byte_vectorA vector to read bytes from

Member Function Documentation

◆ read()

template<typename T >
void autoware::common::helper_functions::ByteReader::read ( T &  value)
inline
Parameters
[in,out]valueRead and store the bytes from the vector matching the size of the argument

◆ skip()

void autoware::common::helper_functions::ByteReader::skip ( std::size_t  count)
inline

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