|
Barrelfish
|
Barrelfish collections library - flip buffer. More...
Functions | |
| void | collections_fbuf_append (struct collections_fbuf *fbuf, const void *data, size_t length) |
| Append data to front buffer. More... | |
| void | collections_fbuf_create (struct collections_fbuf **fbuf) |
| Create a new flip buffer. More... | |
| void | collections_fbuf_flip (struct collections_fbuf *fbuf) |
| Flip the buffer, i.e. change the role of the front and back buffer. More... | |
| void | collections_fbuf_free (struct collections_fbuf *fbuf) |
| Empty the front buffer. More... | |
| void * | collections_fbuf_get_data (struct collections_fbuf *fbuf) |
| Retrieve the data from the front buffer. More... | |
| size_t | collections_fbuf_get_length (struct collections_fbuf *fbuf) |
| Retrieve the length of the data of the front buffer. More... | |
| bool | collections_fbuf_is_empty (struct collections_fbuf *fbuf) |
| Is the front buffer empty? More... | |
| void | collections_fbuf_other_free (struct collections_fbuf *fbuf) |
| Empty the back buffer. More... | |
| bool | collections_fbuf_other_is_empty (struct collections_fbuf *fbuf) |
| Is the back buffer empty? More... | |
| void | collections_fbuf_release (struct collections_fbuf *fbuf) |
| Free all memory associated with the flip buffer. | |
Barrelfish collections library - flip buffer.
| void collections_fbuf_append | ( | struct collections_fbuf * | fbuf, |
| const void * | data, | ||
| size_t | length | ||
| ) |
Append data to front buffer.
| fbuf | Flip buffer to append data to. |
| data | Data to append. Don't have to be \0-terminated. |
| length | Length of data to append. |
| void collections_fbuf_create | ( | struct collections_fbuf ** | fbuf | ) |
Create a new flip buffer.
| fbuf | Pointer to a pointer to a flip buffer. Filled-in by function. |
| void collections_fbuf_flip | ( | struct collections_fbuf * | fbuf | ) |
Flip the buffer, i.e. change the role of the front and back buffer.
| fbuf | Flip buffer to flip. |
| void collections_fbuf_free | ( | struct collections_fbuf * | fbuf | ) |
Empty the front buffer.
| fbuf | Flip buffer to operate on. |
| void* collections_fbuf_get_data | ( | struct collections_fbuf * | fbuf | ) |
Retrieve the data from the front buffer.
| fbuf | Flip buffer to get data from. |
| size_t collections_fbuf_get_length | ( | struct collections_fbuf * | fbuf | ) |
Retrieve the length of the data of the front buffer.
| fbuf | Flip buffer to get length of data from. |
| bool collections_fbuf_is_empty | ( | struct collections_fbuf * | fbuf | ) |
Is the front buffer empty?
| fbuf | Flip buffer to check. |
| void collections_fbuf_other_free | ( | struct collections_fbuf * | fbuf | ) |
Empty the back buffer.
| fbuf | Flip buffer to operate on. |
| bool collections_fbuf_other_is_empty | ( | struct collections_fbuf * | fbuf | ) |
Is the back buffer empty?
| fbuf | Flip buffer to check. |
1.8.11