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

Returns a new instance of Header.



172
173
174
175
176
177
178
# File 'lib/exerb/file_table.rb', line 172

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

Instance Attribute Details

#flag_of_fileObject

Returns the value of attribute flag_of_file.



180
181
182
# File 'lib/exerb/file_table.rb', line 180

def flag_of_file
  @flag_of_file
end

#idObject

Returns the value of attribute id.



180
181
182
# File 'lib/exerb/file_table.rb', line 180

def id
  @id
end

#offset_of_fileObject

Returns the value of attribute offset_of_file.



180
181
182
# File 'lib/exerb/file_table.rb', line 180

def offset_of_file
  @offset_of_file
end

#size_of_fileObject

Returns the value of attribute size_of_file.



180
181
182
# File 'lib/exerb/file_table.rb', line 180

def size_of_file
  @size_of_file
end

#zipdObject

Returns the value of attribute zipd.



180
181
182
# File 'lib/exerb/file_table.rb', line 180

def zipd
  @zipd
end

Instance Method Details

#packObject



182
183
184
# File 'lib/exerb/file_table.rb', line 182

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