Ring

Constructors

this
this(DzlRing* dzlRing, bool ownedRef)

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

~this
~this()
Undocumented in source.

Members

Aliases

doref
alias doref = ref_
Undocumented in source.
foreac
alias foreac = foreach_
Undocumented in source.

Functions

appendVals
uint appendVals(void* data, uint len)

Appends @len values located at @data.

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)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

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.

Properties

data
ubyte* data [@property getter]
ubyte* data [@property setter]
len
uint len [@property getter]
uint len [@property setter]
pos
uint pos [@property getter]
uint pos [@property setter]

Static functions

getType
GType getType()

Variables

dzlRing
DzlRing* dzlRing;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.

Meta