Constructor

AravisBuffernew

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 size_t
 

Payload size.

preallocated void*
 

Preallocated memory buffer.

 The argument can be NULL.
 The data is owned by the caller of the function.

Return value

Returns: ArvBuffer
 

A new ArvBuffer object.

 The caller of the function takes ownership of the data, and is responsible for freeing it.