Class BinaryStream
Defined in File binary_stream.h
Inheritance Relationships
Base Type
public std::vector< uint8_t >
Class Documentation
-
class BinaryStream : public std::vector<uint8_t>
Public Functions
-
BinaryStream()
Holds a character array and allows traversing and popping typed values from it.
-
BinaryStream(uint8_t *data, size_t len)
-
bool done()
-
inline std::vector<uint8_t>::iterator pos()
-
void clear()
-
size_t peek(uint8_t *data, size_t dataSize)
-
void get(void *buf, size_t len, const char *msg = 0)
-
void push(void *buf, size_t len)
-
void get(float &value, const char *msg = 0)
-
inline void push(float value)
-
void get(double &value, const char *msg = 0)
-
inline void push(double value)
-
void get(uint16_t &value, const char *msg = 0)
-
inline void push(uint16_t value)
-
void get(uint32_t &value, const char *msg = 0)
-
inline void push(uint32_t value)
-
void get(uint64_t &value, const char *msg = 0)
-
inline void push(uint64_t value)
-
void get(uint8_t &value, const char *msg = 0)
-
inline void push(uint8_t value)
-
void get(std::vector<uint8_t> &value, const char *msg = 0)
-
void push(std::vector<uint8_t> value)
-
void get(std::string &value, const char *msg = 0)
-
void push(std::string value)
-
void dump()
-
BinaryStream()