Class: Exerb::FileTable::Header
- Inherits:
-
Object
- Object
- Exerb::FileTable::Header
- Defined in:
- lib/exerb/file_table.rb
Overview
#
Constant Summary collapse
- SIGNATURE =
0x04005446
Instance Attribute Summary collapse
-
#number_of_headers ⇒ Object
Returns the value of attribute number_of_headers.
-
#offset_of_headers ⇒ Object
Returns the value of attribute offset_of_headers.
-
#offset_of_pool ⇒ Object
Returns the value of attribute offset_of_pool.
-
#signature ⇒ Object
Returns the value of attribute signature.
Instance Method Summary collapse
-
#initialize ⇒ Header
constructor
A new instance of Header.
- #pack ⇒ Object
Constructor Details
#initialize ⇒ Header
Returns a new instance of Header.
107 108 109 110 111 112 |
# File 'lib/exerb/file_table.rb', line 107 def initialize @signature = 0 @number_of_headers = 0 @offset_of_headers = 0 @offset_of_pool = 0 end |
Instance Attribute Details
#number_of_headers ⇒ Object
Returns the value of attribute number_of_headers.
114 115 116 |
# File 'lib/exerb/file_table.rb', line 114 def number_of_headers @number_of_headers end |
#offset_of_headers ⇒ Object
Returns the value of attribute offset_of_headers.
114 115 116 |
# File 'lib/exerb/file_table.rb', line 114 def offset_of_headers @offset_of_headers end |
#offset_of_pool ⇒ Object
Returns the value of attribute offset_of_pool.
114 115 116 |
# File 'lib/exerb/file_table.rb', line 114 def offset_of_pool @offset_of_pool end |
#signature ⇒ Object
Returns the value of attribute signature.
114 115 116 |
# File 'lib/exerb/file_table.rb', line 114 def signature @signature end |
Instance Method Details
#pack ⇒ Object
116 117 118 |
# File 'lib/exerb/file_table.rb', line 116 def pack return [@signature, @number_of_headers, @offset_of_headers, @offset_of_pool].pack('LSLL') end |