Class DBus::PacketMarshaller
In: lib/dbus/marshall.rb
Parent: Object

D-Bus packet marshaller class

Class that handles the conversion (marshalling) of Ruby objects to (binary) payload data.

Methods

Attributes

packet  [R]  The current or result packet. FIXME: allow access only when marshalling is finished

Public Class methods

Make a [signature, value] pair for a variant

Create a new marshaller, setting the current packet to the empty packet.

Public Instance methods

Align the buffer with NULL (\0) bytes on a byte length of a.

Append a value val to the packet based on its type.

Host native endianness is used, declared in Message#marshall

Append the the signature signature itself to the packet.

Append a string of bytes without type.

Append the the string str itself to the packet.

Append the array type type to the packet and allow for appending the child elements.

Round n up to the specified power of two, a

Align and allow for appending struct fields.

[Validate]