#include "stdint.h"
#include "stddef.h"
#include "stdbool.h"
Go to the source code of this file.
Data Structures | |
struct | __ac_buffer |
Buffer | |
typedef struct __ac_buffer | ac_buffer_t |
void | ac_buffer_init (ac_buffer_t *pBuf, const uint8_t *data, size_t size) |
Initialize ac_buffer using underlying byte array, set ac_buffer's length to 0 (empty) More... | |
void | ac_buffer_dup (ac_buffer_t *pBuf, const ac_buffer_t *pBufIn) |
Copy pBufIn to pBuf. More... | |
static const uint8_t * | ac_buffer_data (const ac_buffer_t *pBuf) |
Get buffer's underlying byte array. More... | |
static size_t | ac_buffer_size (const ac_buffer_t *pBuf) |
Get buffer's size. More... | |
static ac_buffer_t * | ac_buffer_next (const ac_buffer_t *pBuf) |
Get next buffer in chain. More... | |
static void | ac_buffer_set_next (ac_buffer_t *pBuf, ac_buffer_t *pNextBuf) |
Set next buffer in chain. More... | |
void | ac_buffer_append (ac_buffer_t *pBuf, ac_buffer_t *pAppBuf) |
Append buffer to end of chain. More... | |
void | ac_buffer_split (ac_buffer_t *pStartBuf, ac_buffer_t *pEndBuf, ac_buffer_t *pBuf, size_t length) |
Truncate pBuf to length bytes and save the remaining bytes in pEndBuf. More... | |
void | ac_buffer_dump (ac_buffer_t *pBuf) |
Definition in file ac_buffer.h.