class DBus::Data::Fixed
A value that has a fixed size (unlike {StringLike}).
Public Class Methods
Source
# File lib/dbus/data.rb, line 148 def self.from_raw(value, mode:) return value if mode == :plain new(value) end
most Fixed
types are valid whatever bits from the wire are used to initialize them @param mode [:plain,:exact]
Public Instance Methods
Source
# File lib/dbus/data.rb, line 155 def marshall(endianness) [value].pack(self.class.format[endianness]) end
@param endianness [:little,:big]