class Resilience::BootTable

Constants

SECTOR_SIZE

Public Instance Methods

refs_offset() click to toggle source
# File lib/resilience/tables/boot.rb, line 23
def refs_offset
  refs_offsets.first
end
refs_offsets() click to toggle source
# File lib/resilience/tables/boot.rb, line 11
def refs_offsets
  offsets = []
  fs_off = fs_offsets
  image.offset = 0
  fs_off.each do |address|
    image.seek address
    sig = image.read(FS_SIGNATURE.size).unpack('C*')
    offsets << address if sig == FS_SIGNATURE
  end
  offsets
end