Sha256: 90aaf98f73848a10d902ce9c5671cd92b69e94cfe269d99f4bea3015c7207333
Contents?: true
Size: 304 Bytes
Versions: 4
Compression:
Stored size: 304 Bytes
Contents
def load_binary_data(name) path = File.join(File.dirname(__FILE__),'hexdumps',"#{name}.bin") buffer = [] File.open(path) do |file| file.each_byte { |b| buffer << b } end return buffer end def load_hexdump(name) File.read(File.join(File.dirname(__FILE__),'hexdumps',"#{name}.txt")) end
Version data entries
4 entries across 4 versions & 1 rubygems