Ring

Constructors

this
this(DzlRing* dzlRing, bool ownedRef = false)

Sets our main struct and passes it to the parent class.

this
this(uint elementSize, uint reservedSize, GDestroyNotify elementDestroy)

Creates a new instance of #DzlRing with the given number of elements.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

appendVals
uint appendVals(void* data, uint len)

Appends @len values located at @data.

data
ubyte* data()
void data(ubyte* value)
foreach_
void foreach_(GFunc func, void* userData)

Calls @func for every item in the #DzlRing starting from the most recently inserted element to the least recently inserted.

getRingStruct
DzlRing* getRingStruct(bool transferOwnership = false)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

len
uint len()
void len(uint value)
pos
uint pos()
void pos(uint value)
ref_
Ring ref_()

Atomically increments the reference count of @ring by one.

unref
void unref()

Atomically decrements the reference count of @ring by one. When the reference count reaches zero, the structure is freed.

Static functions

getType
GType getType()

Variables

dzlRing
DzlRing* dzlRing;

the main Gtk struct

Meta