libbgp
0.6
A C++ BGP Library.
|
Buffer operation helpers. More...
#include <stdint.h>
#include <unistd.h>
#include <string.h>
Go to the source code of this file.
Functions | |
template<typename T > | |
T | libbgp::getValue (const uint8_t **buffer) |
Get value from buffer. More... | |
template<typename T > | |
size_t | libbgp::putValue (uint8_t **buffer, T value) |
Put value to buffer. More... | |
Buffer operation helpers.
Definition in file value-op.h.
T libbgp::getValue | ( | const uint8_t ** | buffer | ) |
Get value from buffer.
Read value from buffer pointer and move buffer pointer.
T | Type of value. |
buffer | Pointer to buffer. |
Definition at line 42 of file value-op.h.
References libbgp::getValue().
Referenced by libbgp::getValue().
size_t libbgp::putValue | ( | uint8_t ** | buffer, |
T | value | ||
) |
Put value to buffer.
Write the value to buffer pointer and move the buffer pointer.
T | Type of value. |
buffer | Pointer to pointer to buffer. |
value | Value to write. |
Definition at line 51 of file value-op.h.
References libbgp::putValue().
Referenced by libbgp::putValue().