Mbed OS Reference
Loading...
Searching...
No Matches
ac_buffer_builder.h File Reference
#include "stdint.h"
#include "stddef.h"
#include "stdbool.h"
#include "acore/ac_buffer.h"

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...
 
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...
 

Detailed Description

Author
Donatien Garnier

Definition in file ac_buffer_builder.h.