class DBus::Data::Signature

Signature string, zero or more single complete types. See also {DBus::Type}

Public Class Methods

alignment() click to toggle source
# File lib/dbus/data.rb, line 485
def self.alignment
  1
end
from_raw(value, mode:) click to toggle source
# File lib/dbus/data.rb, line 500
def self.from_raw(value, mode:)
  if mode == :plain
    _types = validate_raw!(value)
    return value
  end

  new(value)
end
size_class() click to toggle source
# File lib/dbus/data.rb, line 489
def self.size_class
  Byte
end
type_code() click to toggle source
# File lib/dbus/data.rb, line 481
def self.type_code
  "g"
end
validate_raw!(value) click to toggle source

@return [::Array<Type>]

# File lib/dbus/data.rb, line 494
def self.validate_raw!(value)
  DBus.types(value)
rescue Type::SignatureException => e
  raise InvalidPacketException, "Invalid signature: #{e.message}"
end