Function

Vipsvalue_set_blob

Declaration [src]

void
vips_value_set_blob (
  GValue* value,
  VipsCallbackFn free_fn,
  void* data,
  size_t length
)

Description [src]

Sets value to hold a data. When value is freed, data will be freed with free_fn. value also holds a note of the size of the memory area.

blobs are things like ICC profiles or EXIF data. They are relocatable, and are saved to VIPS files for you coded as base64 inside the XML. They are copied by copying reference-counted pointers.

See also: vips_value_get_blob()

Parameters

value GValue
 

GValue to set.

 The argument will be set by the function.
 The data is owned by the caller of the function.
free_fn VipsCallbackFn
 

Free function for data.

data void*
 

Pointer to area of memory.

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

Length of memory area.