Reference counted buffer that is automatically deleted once the count becomes zero.
More...
Go to the source code of this file.
|
| void * | Buffer_New (U32BIT size, const void *data) |
| | Create buffer of given 'size' initialised to 'data'. The count is initialised to one. More...
|
| |
| void | Buffer_Ref (void *buffer_data) |
| | Increment the count by one. More...
|
| |
| void | Buffer_Unref (void *buffer_data) |
| | Decrement the count by one. The buffer is automatically deleted once the count becomes zero. More...
|
| |
Reference counted buffer that is automatically deleted once the count becomes zero.
- Date
- 01/01/2017
- Author
- Ocean Blue
| void* Buffer_New |
( |
U32BIT |
size, |
|
|
const void * |
data |
|
) |
| |
Create buffer of given 'size' initialised to 'data'. The count is initialised to one.
- Parameters
-
| size | Size |
| data | Source data. Can be NULL |
- Returns
- Buffer data
| void Buffer_Ref |
( |
void * |
buffer_data | ) |
|
Increment the count by one.
- Parameters
-
| void Buffer_Unref |
( |
void * |
buffer_data | ) |
|
Decrement the count by one. The buffer is automatically deleted once the count becomes zero.
- Parameters
-