struct

Pipewire::SPA::Pod

Inherits Struct < Value < Object

Constructors

new(bytes : Bytes)
Source
new(factory : PodFactory)
Source
new(pointer : Pointer(LibSPA::Pod), read_only : Bool = true)

Events received from pipewire are not owned by us, but live only through the processing of the event. So a copy is made of the supplied buffer. Supply the read_only flag to avoid the copy, but be careful to not use the resulting pod after the event processing is done.

Source

Class methods

format
Source

Instance methods

as_array(type_info_list = TypeInfoList.root)
Source
as_bool(headerfree = false) : Bool
Source
as_choice(type_info_list = TypeInfoList.root) : Value
Source
as_double(headerfree = false) : Float64
Source
as_fd(headerfree = false) : Int64
Source
as_float(headerfree = false) : Float32
Source
as_fraction(headerfree = false)
Source
as_id(type_info_list = TypeInfoList.root, headerfree = false) : String
Source
as_int(headerfree = false) : Int32
Source
as_long(headerfree = false) : Int64
Source
as_object(type_info_list = TypeInfoList.root)
Source
as_rectangle(headerfree = false)
Source
as_string
Source
as_struct(type_info_list = TypeInfoList.root)
Source
padded_size
Source
size
Source
to_unsafe
Source
to_value(type_info_list = TypeInfoList.root, type : LibSPA::PodType = self.type, headerfree = false) : Value
Source
type
Source

Macros

decode(type, slice)
Source

Nested types