dynamic_buffer.h v0.2.2
Reference-counted byte buffer library for efficient I/O operations
|
Functions for accessing buffer data and properties. More...
Functions | |
DB_DEF size_t | db_size (db_buffer buf) |
Get current size of buffer in bytes. | |
DB_DEF size_t | db_capacity (db_buffer buf) |
Get current capacity of buffer in bytes. | |
DB_DEF bool | db_is_empty (db_buffer buf) |
Check if buffer is empty. | |
DB_DEF int | db_refcount (db_buffer buf) |
Get current reference count. | |
Functions for accessing buffer data and properties.
Get current capacity of buffer in bytes.
buf | Buffer instance (must not be NULL) |
Check if buffer is empty.
buf | Buffer instance (must not be NULL) |
Get current reference count.
buf | Buffer instance (must not be NULL) |