Class: LibSL::LLF64

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



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

#encodeObject



310
311
312
# File 'lib/types.rb', line 310

def encode()
	[@value].pack('E')
end