lib/mcg/signal_analysis/dsp_file.rb
def to_file( f )
          buf = [MAGIC, VERSION, @timestamp, @operations.length()
                ].pack(PFORMAT)
          f.write(buf)

          @operations.each { |o| o.to_file(f) }
        end
# Pack contents to binary and write to file
Pack contents to binary and write to file
Pack contents to binary and write to file
def to_file( f )
          buf = [MAGIC, VERSION, @timestamp, @operations.length()
                ].pack(PFORMAT)
          f.write(buf)
          @operations.each { |o| o.to_file(f) }
        end
def to_file ( f ) buf = [ MAGIC , VERSION , @timestamp , @operations . length ( ) ] . pack ( PFORMAT ) f . write ( buf ) @operations . each { | o | o . to_file ( f ) } end
Pack contents to binary and write to file
Pack contents to binary and write to file
f