#include <parser.hh>
|
void | _check_size (const size_t size) |
| Check that there is sufficient data to parse the next token. More...
|
|
template<typename T > |
T | _parse_int () |
| Generic integer parsing method (used by u32, u16, u8) More...
|
|
Definition at line 25 of file parser.hh.
◆ NetParser()
NetParser::NetParser |
( |
Buffer |
buffer | ) |
|
|
inline |
◆ _check_size()
void NetParser::_check_size |
( |
const size_t |
size | ) |
|
|
private |
Check that there is sufficient data to parse the next token.
Definition at line 20 of file parser.cc.
◆ _parse_int()
Generic integer parsing method (used by u32, u16, u8)
Definition at line 27 of file parser.cc.
◆ buffer()
Buffer NetParser::buffer |
( |
| ) |
const |
|
inline |
◆ error()
bool NetParser::error |
( |
| ) |
const |
|
inline |
Returns true
if there has been an error.
Definition at line 50 of file parser.hh.
◆ get_error()
Get the current value stored in BaseParser::_error.
Definition at line 43 of file parser.hh.
◆ remove_prefix()
void NetParser::remove_prefix |
( |
const size_t |
n | ) |
|
Remove n bytes from the buffer.
Definition at line 45 of file parser.cc.
◆ set_error()
Set BaseParser::_error.
- Parameters
-
[in] | res | is the value to store in BaseParser::_error |
Definition at line 47 of file parser.hh.
◆ u16()
Parse a 16-bit integer in network byte order from the data stream.
Definition at line 64 of file parser.cc.
◆ u32()
Parse a 32-bit integer in network byte order from the data stream.
Definition at line 62 of file parser.cc.
◆ u8()
Parse an 8-bit integer in network byte order from the data stream.
Definition at line 66 of file parser.cc.
◆ _buffer
◆ _error
Result of parsing so far.
Definition at line 28 of file parser.hh.
The documentation for this class was generated from the following files: