Class: LibSL::LLF32
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
294
295
296
297
|
# File 'lib/types.rb', line 294
def self.decode(data)
data = data.unpack('ea*')
return self.new(data[0]), data[1]
end
|
Instance Method Details
#encode ⇒ Object
299
300
301
|
# File 'lib/types.rb', line 299
def encode()
[@value].pack('e')
end
|