|
MPD
0.17~git
|
This is a library which manages reference counted buffers. More...
#include <stddef.h>#include <stdbool.h>Go to the source code of this file.
Data Structures | |
| struct | page |
| A dynamically allocated buffer which keeps track of its reference count. More... | |
Functions | |
| struct page * | page_new_copy (const void *data, size_t size) |
| Creates a new page object, and copies data from the specified buffer. | |
| struct page * | page_new_concat (const struct page *a, const struct page *b) |
| Concatenates two pages to a new page. | |
| void | page_ref (struct page *page) |
| Increases the reference counter. | |
| bool | page_unref (struct page *page) |
| Decreases the reference counter. | |
This is a library which manages reference counted buffers.
Definition in file page.h.
Concatenates two pages to a new page.
| a | the first page |
| b | the second page, which is appended |
| struct page* page_new_copy | ( | const void * | data, |
| size_t | size | ||
| ) | [read] |
| void page_ref | ( | struct page * | page | ) |
Increases the reference counter.
| page | the page object |
1.7.5.1