dynamic_buffer.h v0.2.2
Reference-counted byte buffer library for efficient I/O operations
Loading...
Searching...
No Matches
Functions
Buffer Concatenation

Functions for combining buffers. More...

Functions

DB_DEF db_buffer db_concat (db_buffer buf1, db_buffer buf2)
 Concatenate two buffers into a new buffer.
 
DB_DEF db_buffer db_concat_many (db_buffer *buffers, size_t count)
 Concatenate multiple buffers into a new buffer.
 

Detailed Description

Functions for combining buffers.

Function Documentation

◆ db_concat()

DB_DEF db_buffer db_concat ( db_buffer  buf1,
db_buffer  buf2 
)

Concatenate two buffers into a new buffer.

Parameters
buf1First buffer (can be NULL)
buf2Second buffer (can be NULL)
Returns
New buffer containing concatenated data (asserts on allocation failure)

◆ db_concat_many()

DB_DEF db_buffer db_concat_many ( db_buffer buffers,
size_t  count 
)

Concatenate multiple buffers into a new buffer.

Parameters
buffersArray of buffer pointers
countNumber of buffers in array
Returns
New buffer containing concatenated data (asserts on allocation failure)