Method

VipsBufset_static

Declaration [src]

void
vips_buf_set_static (
  VipsBuf* buf,
  char* base,
  int mx
)

Description [src]

Attach the buffer to a static memory area. The buffer needs to have been initialised. The memory area needs to be at least 4 bytes long.

Parameters

base char*
 

The start of the memory area to use for storage.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
mx int
 

The size of the storage area.