Class: LibSL::LLU32
Instance Attribute Summary
Attributes inherited from LLNumber
#value
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from LLNumber
endianness, #initialize
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
#encode ⇒ Object
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
|