Class: Exerb::NameTable::Header
- Inherits:
-
Object
- Object
- Exerb::NameTable::Header
- Defined in:
- lib/exerb/name_table.rb
Overview
#
Constant Summary collapse
- SIGNATURE =
0x0100544E
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.
62 63 64 65 66 67 |
# File 'lib/exerb/name_table.rb', line 62 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.
69 70 71 |
# File 'lib/exerb/name_table.rb', line 69 def number_of_headers @number_of_headers end |
#offset_of_headers ⇒ Object
Returns the value of attribute offset_of_headers.
69 70 71 |
# File 'lib/exerb/name_table.rb', line 69 def offset_of_headers @offset_of_headers end |
#offset_of_pool ⇒ Object
Returns the value of attribute offset_of_pool.
69 70 71 |
# File 'lib/exerb/name_table.rb', line 69 def offset_of_pool @offset_of_pool end |
#signature ⇒ Object
Returns the value of attribute signature.
69 70 71 |
# File 'lib/exerb/name_table.rb', line 69 def signature @signature end |
Instance Method Details
#pack ⇒ Object
71 72 73 |
# File 'lib/exerb/name_table.rb', line 71 def pack return [@signature, @number_of_headers, @offset_of_headers, @offset_of_pool].pack('LSLL') end |