Mistake on this page?
Report an issue in GitHub or email us
ac_buffer_reader.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.

Functions

Buffer Reader
void ac_buffer_read_be (ac_buffer_t *pBuf, uint8_t *buf, size_t size)
 Read n-bytes in big-endian format from buffer reader and advance read posiion. More...
 
void ac_buffer_read_le (ac_buffer_t *pBuf, uint8_t *buf, size_t size)
 Read n-bytes in little-endian format from buffer reader and advance read posiion. More...
 
static uint8_t ac_buffer_read_nu8 (ac_buffer_t *pBuf)
 Read 8-bit value from buffer reader and advance read posiion. More...
 
static uint16_t ac_buffer_read_nu16 (ac_buffer_t *pBuf)
 Read BE 16-bit value from buffer reader and advance read posiion. More...
 
static uint32_t ac_buffer_read_nu24 (ac_buffer_t *pBuf)
 Read BE 24-bit value from buffer reader and advance read posiion. More...
 
static uint32_t ac_buffer_read_nu32 (ac_buffer_t *pBuf)
 Read BE 32-bit value from buffer reader and advance read posiion. More...
 
static uint64_t ac_buffer_read_nu64 (ac_buffer_t *pBuf)
 Read BE 64-bit value from buffer reader and advance read posiion. More...
 
static void ac_buffer_read_n_bytes (ac_buffer_t *pBuf, uint8_t *data, size_t size)
 Read n bytes from buffer reader and advance read posiion. More...
 
void ac_buffer_read_n_skip (ac_buffer_t *pBuf, size_t size)
 Skip n bytes from buffer reader and advance read posiion. More...
 
size_t ac_buffer_reader_readable (const ac_buffer_t *pBuf)
 Get number of bytes readable from buffer. More...
 
const uint8_t * ac_buffer_reader_current_buffer_pointer (ac_buffer_t *pBuf)
 Get a pointer to the current position within this buffer's current backing array. More...
 
size_t ac_buffer_reader_current_buffer_length (ac_buffer_t *pBuf)
 Get the number of bytes readable within the current backing array. More...
 
bool ac_buffer_reader_cmp_bytes (const ac_buffer_t *pBuf, const uint8_t *bytes, size_t length)
 Compare buffer with array (does not advance read position) More...
 
bool ac_buffer_reader_cmp (const ac_buffer_t *pBuf1, const ac_buffer_t *pBuf2)
 Compare buffer with array (does not advance read position) More...
 

Detailed Description

Author
Donatien Garnier

Definition in file ac_buffer_reader.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.