Class: LibSL::LLF64
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
305
306
307
308
|
# File 'lib/types.rb', line 305
def self.decode(data)
data = data.unpack('Ea*')
return self.new(data[0]), data[1]
end
|
Instance Method Details
#encode ⇒ Object
310
311
312
|
# File 'lib/types.rb', line 310
def encode()
[@value].pack('E')
end
|