Class: Exerb::NameTable::Entry::Header

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

Overview

#

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHeader

Returns a new instance of Header


106
107
108
109
# File 'lib/exerb/name_table.rb', line 106

def initialize
  @id             = 0
  @offset_of_name = 0
end

Instance Attribute Details

#idObject

Returns the value of attribute id


111
112
113
# File 'lib/exerb/name_table.rb', line 111

def id
  @id
end

#offset_of_nameObject

Returns the value of attribute offset_of_name


111
112
113
# File 'lib/exerb/name_table.rb', line 111

def offset_of_name
  @offset_of_name
end

Instance Method Details

#packObject


113
114
115
# File 'lib/exerb/name_table.rb', line 113

def pack
  return [@id, @offset_of_name].pack('SL')
end