class

Pipewire::Base(T)

Inherits Reference < Object

Constructors

new(pointer : Pointer(T))
Source

Instance methods

to_unsafe
Source
value

Returns the value of the underlying pointer.

Source
value?

Returns true if the underlying pointer is not a null-pointer, otherwise true.

Source

Macros

value_getter(name_type)

Defines a getter method that delegates to the method with the same name on the pointer value.

The argument is a type node with the name and the return type. If the return type inherits Base, the object returned by the pointer value method is wrapped in the return type. If the return type is String, the object returned by the pointer value method is passed to String.new (intended for LibC::Char*). Otherwise, the object returned by the pointer value method is returned.

Source
value_slice(name_type, size_name = nil)

Defines a getter method similar to value_getter, but wraps the values into a Slice.

The first argument is a type node containing the name and the iteration type. The iteration type must inherit Base. The second argument is optional and defaults to n_#{name}, which seems to be the standard naming scheme in the Pipewire API.

Usage:

value_slice items : ItemType, n_items
Source

Nested types