API Reference / @gtkx/native / alloc
Function: alloc()
alloc(
size,gtype?):ExternalObject<Handle>
Defined in: index.d.ts:15
Allocates a zero-filled native memory block of size bytes and returns an opaque handle to it. The optional gtype must be a registered boxed GType and selects g_boxed_free as the handle's destructor instead of g_free.
Parameters
size
number
gtype?
bigint | null