Function

Vipsmalloc

Declaration [src]

void*
vips_malloc (
  VipsObject* object,
  size_t size
)

Description [src]

g_malloc() local to object, that is, the memory will be automatically freed for you when the object is closed. If object is NULL, you need to free the memory explicitly with g_free().

This function cannot fail. See vips_tracked_malloc() if you are allocating large amounts of memory.

Parameters

object

Type: VipsObject

Allocate memory local to this VipsObject, or NULL.

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

Type: size_t

Number of bytes to allocate.

Return value

Type: void*

A pointer to the allocated memory.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy