Class: LibSL::LLF32

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



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

#encodeObject



299
300
301
# File 'lib/types.rb', line 299

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