Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: MiniTLS-HTTPS-Example
buffer.c File Reference
Copyright (c) AppNearMe Ltd 2013 More...
Go to the source code of this file.
Functions | |
Buffers | |
| void | buffer_init (buffer_t *pBuf, uint8_t *bufdata, size_t size) |
| Initialize buffer using underlying byte array, set buffer's length to 0 (empty) | |
| void | buffer_byref (buffer_t *pBuf, uint8_t *bufdata, size_t length) |
| Initialize buffer using underlying byte array, set buffer's length to array's size (full) | |
| buffer_t * | buffer_new (size_t size) |
| uint8_t * | buffer_data (buffer_t *pBuf) |
| Get buffer's underlying byte array. | |
| void | buffer_reset (buffer_t *pBuf) |
| Reset buffer (empty) | |
| size_t | buffer_size (buffer_t *pBuf) |
| Get buffer's size. | |
| size_t | buffer_length (buffer_t *pBuf) |
| Get buffer's length. | |
| size_t | buffer_space (buffer_t *pBuf) |
| Get space in buffer. | |
| bool | buffer_empty (buffer_t *pBuf) |
| Is buffer empty. | |
| void | buffer_set_length (buffer_t *pBuf, size_t length) |
| Set buffer's length. | |
| size_t | buffer_last_byte_length (buffer_t *pBuf) |
| Get buffer's last byte's length. | |
| void | buffer_set_last_byte_length (buffer_t *pBuf, size_t length) |
| Set buffer's last byte's length. | |
| size_t | buffer_bits_count (buffer_t *pBuf) |
| Get buffer's bits count. | |
| void | buffer_write_byte (buffer_t *pBuf, uint8_t b) |
| Write one byte to buffer. | |
| void | buffer_write_bit (buffer_t *pBuf, uint8_t b) |
| Write one bit to buffer. | |
| buffer_t * | buffer_next (buffer_t *pBuf) |
| Get next buffer in chain. | |
| void | buffer_set_next (buffer_t *pBuf, buffer_t *pNextBuf) |
| Set next buffer in chain. | |
| void | buffer_append (buffer_t *pBuf, buffer_t *pAppBuf) |
| Append next buffer to the whole chain. | |
| void | buffer_unlink (buffer_t *pBuf, buffer_t *pLinkedBuf) |
| Split chain at specified buffer. | |
| size_t | buffer_total_size (buffer_t *pBuf) |
| Get buffer chain's total size. | |
| size_t | buffer_total_length (buffer_t *pBuf) |
| Get buffer chain's total length. | |
| void | buffer_set_total_length (buffer_t *pBuf, size_t length) |
| Set buffer chain's total length (fill up one buffer and move to the next if needed) | |
| size_t | buffer_read_byte (buffer_t *pBuf, uint8_t b) |
| size_t | buffer_read_bit (buffer_t *pBuf, uint8_t b) |
| void | buffer_free (buffer_t *pBuf) |
| void | buffer_dump (buffer_t *pBuf) |
| Dump a buffer's content to stdout (useful for debugging) | |
Detailed Description
Copyright (c) AppNearMe Ltd 2013
Definition in file buffer.c.
Generated on Wed Jul 13 2022 00:22:55 by
1.7.2