Class: SlowFat::ExtendedBiosParameterBlock

Inherits:
Object
  • Object
show all
Defined in:
lib/slowfat/bootsect.rb

Overview

ExtendedBiosParameterBlock holds information from an EBPB.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ ExtendedBiosParameterBlock

Returns a new instance of ExtendedBiosParameterBlock.



69
70
71
# File 'lib/slowfat/bootsect.rb', line 69

def initialize(data)
  (@physical_drive_nbr, @flags, @boot_signature, @volume_serial, @volume_label, @fs_type) = data.unpack('CCCVa11a8')
end

Instance Attribute Details

#boot_signatureObject (readonly)

Returns the value of attribute boot_signature.



67
68
69
# File 'lib/slowfat/bootsect.rb', line 67

def boot_signature
  @boot_signature
end

#fs_typeObject (readonly)

Returns the value of attribute fs_type.



67
68
69
# File 'lib/slowfat/bootsect.rb', line 67

def fs_type
  @fs_type
end

#physical_drive_nbrObject (readonly)

Returns the value of attribute physical_drive_nbr.



67
68
69
# File 'lib/slowfat/bootsect.rb', line 67

def physical_drive_nbr
  @physical_drive_nbr
end

#volume_labelObject (readonly)

Returns the value of attribute volume_label.



67
68
69
# File 'lib/slowfat/bootsect.rb', line 67

def volume_label
  @volume_label
end

#volume_serialObject (readonly)

Returns the value of attribute volume_serial.



67
68
69
# File 'lib/slowfat/bootsect.rb', line 67

def volume_serial
  @volume_serial
end