Function

VipsBlobcopy

Declaration [src]

VipsBlob*
vips_blob_copy (
  void* data,
  size_t length
)

Description [src]

Like vips_blob_new(), but take a copy of the data. Useful for bindings which struggle with callbacks.

See also: vips_blob_new().

Parameters

data An array of guint8
 

Data to store.

 The length of the array is specified in the length argument.
 The data is owned by the caller of the function.
length size_t
 

Number of bytes in data.

Return value

Returns: VipsBlob
 

The new VipsBlob.

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