lib/mcg/signal_analysis/sar_file.rb
# 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.to_i, @analyses.length() 
                ].pack(PFORMAT)
          f.write(buf)
          @analyses.each do |a|
            a.to_file(f)
          end
        end
def to_file ( f ) buf = [ MAGIC , VERSION , @timestamp . to_i , @analyses . length ( ) ] . pack ( PFORMAT ) f . write ( buf ) @analyses . each do | a | a . to_file ( f ) end end
Pack contents to binary and write to file
Pack contents to binary and write to file
f