Class: Exerb::FileTable::Header

Inherits:
Object
  • Object
show all
Defined in:
lib/exerb/file_table.rb

Overview

#

Constant Summary collapse

SIGNATURE =
0x04005446

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHeader

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_headersObject

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_headersObject

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_poolObject

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

#signatureObject

Returns the value of attribute signature.



114
115
116
# File 'lib/exerb/file_table.rb', line 114

def signature
  @signature
end

Instance Method Details

#packObject



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