Class: DBus::Data::Int16

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

Overview

Signed 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



253
254
255
# File 'lib/dbus/data.rb', line 253

def self.alignment
  2
end

.formatObject



258
259
260
# File 'lib/dbus/data.rb', line 258

def self.format
  FORMAT
end

.rangeObject



262
263
264
# File 'lib/dbus/data.rb', line 262

def self.range
  (-32_768..32_767)
end

.type_codeObject



249
250
251
# File 'lib/dbus/data.rb', line 249

def self.type_code
  "n"
end