5.16 GTypeValuePeekPointerFunc

Callback: GTypeValuePeekPointerFunc

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

If the value contents fit into a pointer, such as objects or strings, return this pointer, so the caller can peek at the current contents.

To extend on our above string example:


return value->data[0].v_pointer;
value

Passed: a <GValue>.

the value to peek

%return

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

a pointer to the value contents