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

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

Overview

RAR v5 header block model

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.



303
304
305
306
307
308
309
310
311
312
313
314
# File 'lib/omnizip/formats/rar5/reader.rb', line 303

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.



300
301
302
# File 'lib/omnizip/formats/rar5/reader.rb', line 300

def content_start
  @content_start
end

#crcObject

Returns the value of attribute crc.



300
301
302
# File 'lib/omnizip/formats/rar5/reader.rb', line 300

def crc
  @crc
end

#data_sizeObject

Returns the value of attribute data_size.



300
301
302
# File 'lib/omnizip/formats/rar5/reader.rb', line 300

def data_size
  @data_size
end

#extra_sizeObject

Returns the value of attribute extra_size.



300
301
302
# File 'lib/omnizip/formats/rar5/reader.rb', line 300

def extra_size
  @extra_size
end

#flagsObject

Returns the value of attribute flags.



300
301
302
# File 'lib/omnizip/formats/rar5/reader.rb', line 300

def flags
  @flags
end

#header_startObject

Returns the value of attribute header_start.



300
301
302
# File 'lib/omnizip/formats/rar5/reader.rb', line 300

def header_start
  @header_start
end

#sizeObject

Returns the value of attribute size.



300
301
302
# File 'lib/omnizip/formats/rar5/reader.rb', line 300

def size
  @size
end

#typeObject

Returns the value of attribute type.



300
301
302
# File 'lib/omnizip/formats/rar5/reader.rb', line 300

def type
  @type
end

#vint_lengthObject

Returns the value of attribute vint_length.



300
301
302
# File 'lib/omnizip/formats/rar5/reader.rb', line 300

def vint_length
  @vint_length
end