dynamic_buffer.h v0.2.2
Reference-counted byte buffer library for efficient I/O operations
|
Buffer slicing operations (creates independent copies) More...
Functions | |
DB_DEF db_buffer | db_slice (db_buffer buf, size_t offset, size_t length) |
Create a slice of the buffer (creates independent copy) | |
DB_DEF db_buffer | db_slice_from (db_buffer buf, size_t offset) |
Create a slice from offset to end of buffer. | |
DB_DEF db_buffer | db_slice_to (db_buffer buf, size_t length) |
Create a slice from start to specified length. | |
Buffer slicing operations (creates independent copies)
Create a slice of the buffer (creates independent copy)
buf | Source buffer (must not be NULL) |
offset | Starting offset in bytes |
length | Number of bytes in slice |
Create a slice from offset to end of buffer.
buf | Source buffer (must not be NULL) |
offset | Starting offset in bytes |