Class: DBus::Data::UInt16

Inherits:
Int show all
Defined in:
lib/dbus/data.rb

Overview

Unsigned 16 bit integer.

Constant Summary collapse

FORMAT =
Format.new("S<", "S>")

Instance Attribute Summary

Attributes inherited from Base

#value

Class Method Summary collapse

Methods inherited from Int

#initialize

Methods inherited from Fixed

fixed?, from_raw, #marshall

Methods inherited from Basic

basic?, from_typed, type, #type

Methods inherited from Base

#==, assert_type_matches_class, basic?, #eql?, fixed?, from_typed, #initialize, #type

Constructor Details

This class inherits a constructor from DBus::Data::Int

Class Method Details

.alignmentObject



273
274
275
# File 'lib/dbus/data.rb', line 273

def self.alignment
  2
end

.formatObject



278
279
280
# File 'lib/dbus/data.rb', line 278

def self.format
  FORMAT
end

.rangeObject



282
283
284
# File 'lib/dbus/data.rb', line 282

def self.range
  (0..65_535)
end

.type_codeObject



269
270
271
# File 'lib/dbus/data.rb', line 269

def self.type_code
  "q"
end