-
public void* malloc (size_t n_bytes)
Allocates n_bytes bytes of memory.
-
public void* malloc0 (size_t n_bytes)
Allocates n_bytes bytes of memory, initialized to 0's.
-
public void* realloc (void* mem, size_t n_bytes)
Reallocates the memory pointed to by mem, so that it now has space for n_bytes bytes of memory.
-
public void* try_malloc (size_t n_bytes)
Attempts to allocate n_bytes, and returns null on failure.
-
public void* try_malloc0 (size_t n_bytes)
Attempts to allocate n_bytes, initialized to 0's, and returns null on failure.
-
public void* try_realloc (void* mem, size_t n_bytes)
Attempts to realloc mem to a new size, n_bytes, and returns null on failure.
-
public void free (void* mem)
Frees the memory pointed to by mem. If mem is null it simply returns.
-
public void mem_set_vtable (MemVTable vtable)
-
public void mem_profile ()
Outputs a summary of memory usage.
-
public void print (string format, ...)
-
public void set_print_handler (PrintFunc func)
-
public void printerr (string format, ...)
-
public void set_printerr_handler (PrintFunc func)
-
public void return_if_fail (bool expr)
-
public void return_val_if_fail (bool expr, ...)
-
public void return_if_reached ()
-
public void return_val_if_reached (...)
-
public void warn_if_fail (bool expr)
-
public void warn_if_reached ()
-
public void assert (bool expr)
Debugging macro to terminate the application if the assertion fails.
-
public void assert_not_reached ()
Debugging macro to terminate the application if it is ever reached.
-
public void on_error_query (string? prg_name = null)
-
public void on_error_stack_trace (string? prg_name = null)
-
public void breakpoint ()
-
public void logv (string? log_domain, LogLevelFlags log_level, string format, va_list args)
Logs an error or debugging message.
-
public void log (string? log_domain, LogLevelFlags log_level, string format, ...)
Logs an error or debugging message.
-
public void message (string format, ...)
A convenience function/macro to log a normal message.
-
public void warning (string format, ...)
A convenience function/macro to log a warning message.
-
public void critical (string format, ...)
Logs a "critical warning" (G_LOG_LEVEL_CRITICAL).
-
public void error (string format, ...)
A convenience function/macro to log an error message.
-
public void debug (string format, ...)
A convenience function/macro to log a debug message.
-
public uint parse_debug_string (string? debug_string, DebugKey[] keys)
-
public uint strv_length (string[] str_array)
-
public unowned string strerror (int errnum)
Returns a string corresponding to the given error code, e.g. "no such process".
-
public string convert (string str, ssize_t len, string to_codeset, string from_codeset, out size_t bytes_read = null, out size_t bytes_written = null) throws ConvertError
-
public bool get_charset (out string charset)
-
public int64 get_monotonic_time ()
-
public int64 get_real_time ()
-
public string format_size_for_display (int64 size)
-
public unowned string strsignal (int signum)
Returns a string describing the given signal, e.g. "Segmentation fault".
-
public unowned string _ (string str)
-
public unowned string Q_ (string str)
-
public unowned string N_ (string str)
-
public unowned string C_ (string context, string str)
-
public unowned string NC_ (string context, string str)
-
public unowned string ngettext (string msgid, string msgid_plural, ulong n)
-
public unowned string dgettext (string? domain, string msgid)
-
public unowned string dcgettext (string? domain, string msgid, int category)
-
public unowned string dngettext (string? domain, string msgid, string msgid_plural, ulong n)
-
public unowned string dpgettext (string? domain, string msgctxid, size_t msgidoffset)
-
public unowned string dpgettext2 (string? domain, string context, string msgid)
-
public bool likely (bool expression)
-
public bool unlikely (bool expression)
-
public void static_assert (bool expression)