Go to the source code of this file.
Data Structures | |
struct | __ac_buffer_builder |
Buffer Builder | |
typedef struct __ac_buffer_builder | ac_buffer_builder_t |
void | ac_buffer_builder_write_be (ac_buffer_builder_t *pBuilder, const uint8_t *buf, size_t size) |
Write data to big endian ac_buffer (on a LE architecture, byte order will be swapped) More... | |
void | ac_buffer_builder_write_le (ac_buffer_builder_t *pBuilder, const uint8_t *buf, size_t size) |
Write data to little endian ac_buffer (on a LE architecture, byte order will be preserved) More... | |
void | ac_buffer_builder_write_be_at (ac_buffer_builder_t *pBuilder, size_t pos, const uint8_t *buf, size_t size) |
Write data to big endian ac_buffer at specific position (on a LE architecture, byte order will be swapped) More... | |
void | ac_buffer_builder_write_le_at (ac_buffer_builder_t *pBuilder, size_t pos, const uint8_t *buf, size_t size) |
Write data to little endian ac_buffer at specific position (on a LE architecture, byte order will be preserved) More... | |
void | ac_buffer_builder_init (ac_buffer_builder_t *pBuilder, uint8_t *data, size_t size) |
Initialize ac_buffer builder. More... | |
void | ac_buffer_builder_from_buffer (ac_buffer_builder_t *pBuilder) |
Initialize ac_buffer builder from underlying ac_buffer. More... | |
void | ac_buffer_builder_reset (ac_buffer_builder_t *pBuilder) |
Reset ac_buffer builder. More... | |
void | ac_buffer_builder_set_full (ac_buffer_builder_t *pBuilder) |
Set ac_buffer builder's ac_buffer to full size. More... | |
static size_t | ac_buffer_builder_length (ac_buffer_builder_t *pBuilder) |
Get ac_buffer builder's length. More... | |
static void | ac_buffer_builder_set_length (ac_buffer_builder_t *pBuilder, size_t length) |
Set ac_buffer builder's length. More... | |
static uint8_t * | ac_buffer_builder_write_position (ac_buffer_builder_t *pBuilder) |
Get ac_buffer builder's pointer to write position. More... | |
static size_t | ac_buffer_builder_write_offset (ac_buffer_builder_t *pBuilder) |
Get ac_buffer builder's write offset. More... | |
static void | ac_buffer_builder_set_write_offset (ac_buffer_builder_t *pBuilder, size_t off) |
Set ac_buffer builder's write offset. More... | |
static size_t | ac_buffer_builder_read_offset (ac_buffer_builder_t *pBuilder) |
Get ac_buffer builder's read offset. More... | |
static void | ac_buffer_builder_set_read_offset (ac_buffer_builder_t *pBuilder, size_t off) |
Set ac_buffer builder's read offset. More... | |
static ac_buffer_t * | ac_buffer_builder_buffer (ac_buffer_builder_t *pBuilder) |
Get ac_buffer builder's underlying ac_buffer. More... | |
static size_t | ac_buffer_builder_space (ac_buffer_builder_t *pBuilder) |
Get space in ac_buffer builder. More... | |
static bool | ac_buffer_builder_empty (ac_buffer_builder_t *pBuilder) |
Is ac_buffer builder empty. More... | |
static bool | ac_buffer_full (ac_buffer_builder_t *pBuilder) |
Is ac_buffer builder full. More... | |
static void | ac_buffer_builder_write_nu8 (ac_buffer_builder_t *pBuilder, uint8_t hu8) |
Write 8-bit value in ac_buffer builder. More... | |
static void | ac_buffer_builder_write_nu16 (ac_buffer_builder_t *pBuilder, uint16_t hu16) |
Write 16-bit value in ac_buffer builder. More... | |
static void | ac_buffer_builder_write_nu24 (ac_buffer_builder_t *pBuilder, uint32_t hu24) |
Write 24-bit value in ac_buffer builder. More... | |
static void | ac_buffer_builder_write_nu32 (ac_buffer_builder_t *pBuilder, uint32_t hu32) |
Write 32-bit value in ac_buffer builder. More... | |
static void | ac_buffer_builder_write_nu64 (ac_buffer_builder_t *pBuilder, uint64_t hu64) |
Write 64-bit value in ac_buffer builder. More... | |
static void | ac_buffer_builder_write_n_bytes (ac_buffer_builder_t *pBuilder, const uint8_t *data, size_t size) |
Write n-bytes value in ac_buffer builder. More... | |
static void | ac_buffer_builder_write_nu8_at (ac_buffer_builder_t *pBuilder, size_t off, uint8_t hu8) |
Write 8-bit value in ac_buffer builder at specified position. More... | |
static void | ac_buffer_builder_write_nu16_at (ac_buffer_builder_t *pBuilder, size_t off, uint16_t hu16) |
Write 16-bit value in ac_buffer builder at specified position. More... | |
static void | ac_buffer_builder_write_nu24_at (ac_buffer_builder_t *pBuilder, size_t off, uint32_t hu24) |
Write 24-bit value in ac_buffer builder at specified position. More... | |
static void | ac_buffer_builder_write_nu32_at (ac_buffer_builder_t *pBuilder, size_t off, uint32_t hu32) |
Write 32-bit value in ac_buffer builder at specified position. More... | |
static void | ac_buffer_builder_write_nu64_at (ac_buffer_builder_t *pBuilder, size_t off, uint64_t hu64) |
Write 64-bit value in ac_buffer builder at specified position. More... | |
static void | ac_buffer_builder_write_n_bytes_at (ac_buffer_builder_t *pBuilder, size_t off, const uint8_t *data, size_t size) |
Write n-bytes value in ac_buffer builder at specified position. More... | |
void | ac_buffer_builder_write_n_skip (ac_buffer_builder_t *pBuilder, size_t size) |
Skip n-bytes in ac_buffer builder. More... | |
void | ac_buffer_builder_copy_n_bytes (ac_buffer_builder_t *pBuilderOut, ac_buffer_t *pBufIn, size_t size) |
Copy n bytes from buffer to builder. More... | |
void | ac_buffer_builder_compact (ac_buffer_builder_t *pBuilder) |
Compact builder Will move underlying buffer's byte to start of allocated buffer. More... | |
static size_t | ac_buffer_builder_writable (ac_buffer_builder_t *pBuilder) |
Get number of writable bytes in ac_buffer builder. More... | |
Definition in file ac_buffer_builder.h.