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
DescriptionA message buffer you can append stuff to safely and quickly. If the message gets too long, you get "..." and truncation. Message buffers can be on the stack or heap. For example:
FunctionsVIPS_BUF_STATIC()#define VIPS_BUF_STATIC( TEXT ) Initialize a heap buffer. For example:
vips_buf_destroy ()void
vips_buf_destroy (
Destroy a buffer. Only needed for heap buffers. Leaves the buffer in the _init state. vips_buf_set_static ()void vips_buf_set_static ( 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. vips_buf_set_dynamic ()void vips_buf_set_dynamic ( Attach the buffer to a heap memory area. The buffer needs to have been initialised. The memory area needs to be at least 4 bytes long. vips_buf_init_static ()void vips_buf_init_static ( Initialise and attach to a static memory area. For example:
Static buffers don't need to be freed when they go out of scope, but their size must be set at compile-time. vips_buf_init_dynamic ()void vips_buf_init_dynamic ( Initialise and attach to a heap memory area. The memory area needs to be at least 4 bytes long.
Dynamic buffers must be freed with vips_buf_appendns ()gboolean vips_buf_appendns ( Append at most vips_buf_appends ()gboolean vips_buf_appends ( Append the whole of vips_buf_appendf ()gboolean vips_buf_appendf ( Format the string and append to vips_buf_vappendf ()gboolean vips_buf_vappendf ( Append to vips_buf_appendc ()gboolean vips_buf_appendc ( Append a single character vips_buf_appendgv ()gboolean vips_buf_appendgv ( Format and append a GValue as a printable thing. We display text line "3144 bytes of binary data" for BLOBs like icc-profile-data. Use vips_buf_append_size ()gboolean vips_buf_append_size ( Turn a number of bytes into a sensible string ... eg "12", "12KB", "12MB", "12GB" etc. vips_buf_removec ()gboolean vips_buf_removec ( Remove the last character, if it's vips_buf_change ()gboolean vips_buf_change ( Swap the rightmost occurence of vips_buf_all ()const char *
vips_buf_all (
Return the contents of the buffer as a C string. vips_buf_firstline ()const char *
vips_buf_firstline (
Trim to just the first line (excluding "\n"). vips_buf_appendg ()gboolean vips_buf_appendg ( Append a double, non-localised. Useful for config files etc. vips_buf_appendd ()gboolean vips_buf_appendd ( Append a number. If the number is -ve, add brackets. Needed for building function arguments. |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0092 ]-- |