Class: Omnizip::Formats::Rar5::Reader::HeaderBlock

Inherits:
Object
  • Object
show all
Defined in:
lib/omnizip/formats/rar5/reader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(crc: nil, size: nil, vint_length: 1, type: nil, flags: nil, extra_size: nil, data_size: nil, header_start: nil, content_start: nil) ⇒ HeaderBlock

Returns a new instance of HeaderBlock.



83
84
85
86
87
88
89
90
91
92
93
94
# File 'lib/omnizip/formats/rar5/reader.rb', line 83

def initialize(crc: nil, size: nil, vint_length: 1, type: nil, flags: nil,
               extra_size: nil, data_size: nil, header_start: nil, content_start: nil)
  @crc = crc
  @size = size
  @vint_length = vint_length
  @type = type
  @flags = flags
  @extra_size = extra_size
  @data_size = data_size
  @header_start = header_start
  @content_start = content_start
end

Instance Attribute Details

#content_startObject

Returns the value of attribute content_start.



80
81
82
# File 'lib/omnizip/formats/rar5/reader.rb', line 80

def content_start
  @content_start
end

#crcObject

Returns the value of attribute crc.



80
81
82
# File 'lib/omnizip/formats/rar5/reader.rb', line 80

def crc
  @crc
end

#data_sizeObject

Returns the value of attribute data_size.



80
81
82
# File 'lib/omnizip/formats/rar5/reader.rb', line 80

def data_size
  @data_size
end

#extra_sizeObject

Returns the value of attribute extra_size.



80
81
82
# File 'lib/omnizip/formats/rar5/reader.rb', line 80

def extra_size
  @extra_size
end

#flagsObject

Returns the value of attribute flags.



80
81
82
# File 'lib/omnizip/formats/rar5/reader.rb', line 80

def flags
  @flags
end

#header_startObject

Returns the value of attribute header_start.



80
81
82
# File 'lib/omnizip/formats/rar5/reader.rb', line 80

def header_start
  @header_start
end

#sizeObject

Returns the value of attribute size.



80
81
82
# File 'lib/omnizip/formats/rar5/reader.rb', line 80

def size
  @size
end

#typeObject

Returns the value of attribute type.



80
81
82
# File 'lib/omnizip/formats/rar5/reader.rb', line 80

def type
  @type
end

#vint_lengthObject

Returns the value of attribute vint_length.



80
81
82
# File 'lib/omnizip/formats/rar5/reader.rb', line 80

def vint_length
  @vint_length
end