GOffice.MemChunk
GOffice.MemChunk.new()
GOffice.MemChunk.alloc()
GOffice.MemChunk.alloc0()
GOffice.MemChunk.destroy()
GOffice.MemChunk.foreach_leak()
GOffice.MemChunk.free()
None
class
new (name, user_atom_size, chunk_size)
new
alloc ()
alloc
alloc0 ()
alloc0
destroy (expect_leaks)
destroy
foreach_leak (cb, user)
foreach_leak
free (mem)
free
name (str) –
str
user_atom_size (int) –
int
chunk_size (int) –
an unused memory block
object or None
object
an unused memory block filled with 0
expect_leaks (bool) –
bool
cb (GLib.Func) – callback
GLib.Func
user (object or None) – user data for cb
Loop over all non-freed memory in the chunk. It’s safe to allocate or free from the chunk in the callback.
mem (object or None) – item to release
Returns the given item to the pool.