Constructor
AravisBuffernew
since: 0.2.0
Declaration [src]
ArvBuffer*
arv_buffer_new (
size_t size,
void* preallocated
)
Description [src]
Creates a new buffer for the storage of the video stream images. The data space can be either preallocated, and the caller is responsible for it’s deallocation, or allocated by this function. If it is the case, data memory will be freed when the buffer is destroyed.
Available since: 0.2.0
Parameters
size
-
Type:
size_t
Payload size.
preallocated
-
Type:
void*
Preallocated memory buffer.
The argument can be NULL
.The data is owned by the caller of the function.
Return value
Type: ArvBuffer
A new ArvBuffer
object.
The caller of the function takes ownership of the data, and is responsible for freeing it. |