Class: OSC::OSCDouble64

Inherits:
OSCArgument show all
Defined in:
lib/osc-ruby/osc_types.rb

Instance Attribute Summary

Attributes inherited from OSCArgument

#val

Instance Method Summary collapse

Methods inherited from OSCArgument

#initialize, #to_f, #to_i, #to_s

Constructor Details

This class inherits a constructor from OSC::OSCArgument

Instance Method Details

#encodeObject



29
30
31
# File 'lib/osc-ruby/osc_types.rb', line 29

def encode
  [@val].pack('G').force_encoding("BINARY")
end

#tagObject



25
26
27
# File 'lib/osc-ruby/osc_types.rb', line 25

def tag
  'd'
end