Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

ac_buffer_reader.h File Reference

ac_buffer_reader.h File Reference

Copyright (c) ARM Ltd 2015 More...

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.
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.
static uint8_t ac_buffer_read_nu8 (ac_buffer_t *pBuf)
 Read 8-bit value from buffer reader and advance read posiion.
static uint16_t ac_buffer_read_nu16 (ac_buffer_t *pBuf)
 Read BE 16-bit value from buffer reader and advance read posiion.
static uint32_t ac_buffer_read_nu24 (ac_buffer_t *pBuf)
 Read BE 24-bit value from buffer reader and advance read posiion.
static uint32_t ac_buffer_read_nu32 (ac_buffer_t *pBuf)
 Read BE 32-bit value from buffer reader and advance read posiion.
static uint64_t ac_buffer_read_nu64 (ac_buffer_t *pBuf)
 Read BE 64-bit value from buffer reader and advance read posiion.
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.
void ac_buffer_read_n_skip (ac_buffer_t *pBuf, size_t size)
 Skip n bytes from buffer reader and advance read posiion.
size_t ac_buffer_reader_readable (const ac_buffer_t *pBuf)
 Get number of bytes readable from buffer.
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.
size_t ac_buffer_reader_current_buffer_length (ac_buffer_t *pBuf)
 Get the number of bytes readable within the current backing array.
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)
bool ac_buffer_reader_cmp (const ac_buffer_t *pBuf1, const ac_buffer_t *pBuf2)
 Compare buffer with array (does not advance read position)

Detailed Description

Copyright (c) ARM Ltd 2015

Author:
Donatien Garnier

Definition in file ac_buffer_reader.h.