Class: LibSL::LLU32

Inherits:
LLNumber show all
Defined in:
lib/types.rb

Instance Attribute Summary

Attributes inherited from LLNumber

#value

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from LLNumber

endianness, #initialize

Constructor Details

This class inherits a constructor from LibSL::LLNumber

Class Method Details

.decode(data) ⇒ Object



175
176
177
# File 'lib/types.rb', line 175

def self.decode(data)
	LLNumber.decode(data, 'V1a*', LLU32)
end

Instance Method Details

#encodeObject

Raises:

  • (ArgumentError)


179
180
181
182
# File 'lib/types.rb', line 179

def encode()
	raise ArgumentError, "Value out of range: #{@value}" if @value < 0 or @value > 0xffffffff
	super('V1')
end