Type Alias GReallocFunc

Source
pub type GReallocFunc = Option<unsafe extern "C" fn(data: gpointer, size: gsize) -> gpointer>;
Expand description

GReallocFunc: @data: memory block to reallocate @size: size to reallocate @data to

Changes the size of the memory block pointed to by @data to @size bytes.

The function should have the same semantics as realloc().

Returns: a pointer to the reallocated memory

Aliased Type§

enum GReallocFunc {
    None,
    Some(unsafe extern "C" fn(*mut c_void, u32) -> *mut c_void),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void, u32) -> *mut c_void)

Some value of type T.