Sha256: c1f22e82f7d35fd17a696d698f6aca634aa3effba7fd07291df20b4978d1c4db

Contents?: true

Size: 285 Bytes

Versions: 5

Compression:

Stored size: 285 Bytes

Contents

module Helpers
  DIRECTORY = File.join(File.dirname(__FILE__),'hexdumps')

  def load_binary_data(name)
    File.open(File.join(DIRECTORY,"#{name}.bin"),'rb') do |file|
      file.read
    end
  end

  def load_hexdump(name)
    File.read(File.join(DIRECTORY,"#{name}.txt"))
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ronin-support-0.5.2 spec/binary/hexdump/helpers/hexdumps.rb
ronin-support-0.5.1 spec/binary/hexdump/helpers/hexdumps.rb
ronin-support-0.5.0 spec/binary/hexdump/helpers/hexdumps.rb
ronin-support-0.5.0.rc2 spec/binary/hexdump/helpers/hexdumps.rb
ronin-support-0.5.0.rc1 spec/binary/hexdump/helpers/hexdumps.rb