Method

VipsRefStringget

Declaration [src]

const char*
vips_ref_string_get (
  VipsRefString* refstr,
  size_t* length
)

Description [src]

Get a pointer to the private string inside a refstr. Handy for language bindings.

::: seealso vips_value_get_ref_string().

Parameters

length size_t*
 

Return length here, optionally.

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.

Return value

Returns: utf8
 

The C string held by refstr.

 The data is owned by the instance.
 The string is a NUL terminated UTF-8 string.