Class: DBus::Data::Byte

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

Overview

Byte.

TODO: a specialized ByteArray for ‘ay` may be useful, to save memory and for natural handling

Constant Summary collapse

FORMAT =
Format.new("C", "C")

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



188
189
190
# File 'lib/dbus/data.rb', line 188

def self.alignment
  1
end

.formatObject



192
193
194
# File 'lib/dbus/data.rb', line 192

def self.format
  FORMAT
end

.rangeObject



196
197
198
# File 'lib/dbus/data.rb', line 196

def self.range
  (0..255)
end

.type_codeObject



184
185
186
# File 'lib/dbus/data.rb', line 184

def self.type_code
  "y"
end