6.21 GReallocFunc

Callback: GReallocFunc

A procedure given for it is called as (procedure data size) ⇒ %return.

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

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

data

Passed: a foreign pointer, or #f.

memory block to reallocate

size

Passed: an unsigned 64-bit integer.

size to reallocate data to

%return

Returned: a foreign pointer, or a bytevector, or #f.

a pointer to the reallocated memory