class FileHeader
Constants
- FH
Public Class Methods
new()
click to toggle source
Calls superclass method
Base::new
# File lib/elfcat/fileheader.rb, line 24 def initialize super x = $resource.slice_with_index(0, 64) FH.each do |k, v| @data[k] = Util.concatenate(x, v[0], v[1]) end end
Public Instance Methods
debug()
click to toggle source
# File lib/elfcat/fileheader.rb, line 33 def debug @data.each do |k, d| k_s = sprintf("%32s", k) puts "#{k_s}: #{CuteHex.x d.data, slicer: :byte, word_size: (FH[k][1] * 8), style: :data, pad_zeros: true}" end end