Package ch.bailu.gtk.glib
Klasse TrashStack
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.glib.TrashStack
- Alle implementierten Schnittstellen:
PointerInterface
A `GTrashStack` is an efficient way to keep a stack of unused allocated
memory chunks. Each memory chunk is required to be large enough to hold
a `gpointer`. This allows the stack to be maintained without any space
overhead, since the stack pointers can be stored inside the memory chunks.
There is no function to create a `GTrashStack`. A `NULL` `GTrashStack*`
is a perfectly valid empty stack.
Each piece of memory that is pushed onto the stack is cast to a
`GTrashStack*`.
There is no longer any good reason to use `GTrashStack`. If you have
extra pieces of memory, `free()` them and allocate them again later.
memory chunks. Each memory chunk is required to be large enough to hold
a `gpointer`. This allows the stack to be maintained without any space
overhead, since the stack pointers can be stored inside the memory chunks.
There is no function to create a `GTrashStack`. A `NULL` `GTrashStack*`
is a perfectly valid empty stack.
Each piece of memory that is pushed onto the stack is cast to a
`GTrashStack*`.
There is no longer any good reason to use `GTrashStack`. If you have
extra pieces of memory, `free()` them and allocate them again later.
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final Stringpointer to the previous element of the stack,
gets stored in the first `sizeof (gpointer)`
bytes of the element -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ClassHandlerpointer to the previous element of the stack,
gets stored in the first `sizeof (gpointer)`
bytes of the elementvoidsetFieldNext(TrashStack next) pointer to the previous element of the stack,
gets stored in the first `sizeof (gpointer)`
bytes of the elementVon Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksVon Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Felddetails
-
NEXT
pointer to the previous element of the stack,
gets stored in the first `sizeof (gpointer)`
bytes of the element- Siehe auch:
-
-
Konstruktordetails
-
TrashStack
-
TrashStack
public TrashStack()
-
-
Methodendetails
-
getClassHandler
-
setFieldNext
pointer to the previous element of the stack,
gets stored in the first `sizeof (gpointer)`
bytes of the element -
getFieldNext
pointer to the previous element of the stack,
gets stored in the first `sizeof (gpointer)`
bytes of the element
-