ROHC compression/decompression library
|
Define a network buffer for the ROHC library. More...
Functions | |
bool | rohc_buf_is_malformed (const struct rohc_buf buf) |
Is the given network buffer malformed? | |
bool | rohc_buf_is_empty (const struct rohc_buf buf) |
Is the given network buffer empty? | |
void | rohc_buf_pull (struct rohc_buf *const buf, const size_t offset) |
Pull the beginning of the given network buffer. | |
void | rohc_buf_push (struct rohc_buf *const buf, const size_t offset) |
Push the beginning of the given network buffer. | |
size_t | rohc_buf_avail_len (const struct rohc_buf buf) |
How many bytes the given network buffer may contain? | |
uint8_t * | rohc_buf_data (const struct rohc_buf buf) |
Get the bytes in the given network buffer. | |
uint8_t * | rohc_buf_data_at (const struct rohc_buf buf, const size_t offset) |
Get the bytes at the given offset in the given network buffer. | |
void | rohc_buf_prepend (struct rohc_buf *const buf, const uint8_t *const data, const size_t len) |
Add data at the beginning of the given network buffer. | |
void | rohc_buf_append (struct rohc_buf *const buf, const uint8_t *const data, const size_t len) |
Add data at the end of the given network buffer. | |
void | rohc_buf_append_buf (struct rohc_buf *const dst, const struct rohc_buf src) |
Add a network buffer at the end of the given network buffer. | |
void | rohc_buf_reset (struct rohc_buf *const buf) |
Reset the given network buffer. |
Define a network buffer for the ROHC library.