Class: Exerb::NameTable::Header

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

Overview

#

Constant Summary collapse

SIGNATURE =
0x0100544E

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHeader

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_headersObject

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_headersObject

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_poolObject

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

#signatureObject

Returns the value of attribute signature


69
70
71
# File 'lib/exerb/name_table.rb', line 69

def signature
  @signature
end

Instance Method Details

#packObject


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