Class: Exerb::FileTable::Entry::Header
- Inherits:
-
Object
- Object
- Exerb::FileTable::Entry::Header
- Defined in:
- lib/exerb/file_table.rb
Overview
#
Instance Attribute Summary collapse
-
#flag_of_file ⇒ Object
Returns the value of attribute flag_of_file.
-
#id ⇒ Object
Returns the value of attribute id.
-
#offset_of_file ⇒ Object
Returns the value of attribute offset_of_file.
-
#size_of_file ⇒ Object
Returns the value of attribute size_of_file.
Instance Method Summary collapse
-
#initialize ⇒ Header
constructor
A new instance of Header.
- #pack ⇒ Object
Constructor Details
#initialize ⇒ Header
Returns a new instance of Header.
162 163 164 165 166 167 |
# File 'lib/exerb/file_table.rb', line 162 def initialize @id = 0 @offset_of_file = 0 @size_of_file = 0 @flag_of_file = 0 end |
Instance Attribute Details
#flag_of_file ⇒ Object
Returns the value of attribute flag_of_file.
169 170 171 |
# File 'lib/exerb/file_table.rb', line 169 def flag_of_file @flag_of_file end |
#id ⇒ Object
Returns the value of attribute id.
169 170 171 |
# File 'lib/exerb/file_table.rb', line 169 def id @id end |
#offset_of_file ⇒ Object
Returns the value of attribute offset_of_file.
169 170 171 |
# File 'lib/exerb/file_table.rb', line 169 def offset_of_file @offset_of_file end |
#size_of_file ⇒ Object
Returns the value of attribute size_of_file.
169 170 171 |
# File 'lib/exerb/file_table.rb', line 169 def size_of_file @size_of_file end |
Instance Method Details
#pack ⇒ Object
171 172 173 |
# File 'lib/exerb/file_table.rb', line 171 def pack return [@id, @offset_of_file, @size_of_file, @flag_of_file].pack('SLLC') end |