Mbed OS Reference
Loading...
Searching...
No Matches
ac_buffer.h File Reference
#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...
 
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)
 

Detailed Description

Author
Donatien Garnier

Definition in file ac_buffer.h.