module GC

Defined in:

lib/gi-crystal/src/bindings/g_object/gc.cr:6
lib/gi-crystal/src/bindings/g_object/gc.cr:26

Class Method Summary

Class Method Detail

def self.malloc_uncollectable(size : Int) : Pointer(Void) #

Allocates size bytes of uncollectable memory.

The resulting object may contain pointers and they will be tracked by the GC.

The memory will not be automatically deallocated when unreferenced.


[View source]