Class: Exerb::FileTable::Entry::Header

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

Overview

#

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHeader


162
163
164
165
166
167
# File 'lib/exerb/file_table.rb', line 162

def initialize
  @id             = 0
  @offset_of_file = 0
  @size_of_file   = 0
  @flag_of_file   = 0
end

Instance Attribute Details

#flag_of_fileObject

Returns the value of attribute flag_of_file


169
170
171
# File 'lib/exerb/file_table.rb', line 169

def flag_of_file
  @flag_of_file
end

#idObject

Returns the value of attribute id


169
170
171
# File 'lib/exerb/file_table.rb', line 169

def id
  @id
end

#offset_of_fileObject

Returns the value of attribute offset_of_file


169
170
171
# File 'lib/exerb/file_table.rb', line 169

def offset_of_file
  @offset_of_file
end

#size_of_fileObject

Returns the value of attribute size_of_file


169
170
171
# File 'lib/exerb/file_table.rb', line 169

def size_of_file
  @size_of_file
end

Instance Method Details

#packObject


171
172
173
# File 'lib/exerb/file_table.rb', line 171

def pack
  return [@id, @offset_of_file, @size_of_file, @flag_of_file].pack('SLLC')
end