Class: Omnizip::Formats::Rar3::BlockHeader

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

Overview

RAR v3 block header model

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(crc: nil, type: nil, flags: nil, size: nil, header_start: nil, header_size: 7) ⇒ BlockHeader

Returns a new instance of BlockHeader.



351
352
353
354
355
356
357
358
359
# File 'lib/omnizip/formats/rar3/reader.rb', line 351

def initialize(crc: nil, type: nil, flags: nil, size: nil,
               header_start: nil, header_size: 7)
  @crc = crc
  @type = type
  @flags = flags
  @size = size
  @header_start = header_start
  @header_size = header_size
end

Instance Attribute Details

#crcObject

Returns the value of attribute crc.



349
350
351
# File 'lib/omnizip/formats/rar3/reader.rb', line 349

def crc
  @crc
end

#flagsObject

Returns the value of attribute flags.



349
350
351
# File 'lib/omnizip/formats/rar3/reader.rb', line 349

def flags
  @flags
end

#header_sizeObject

Returns the value of attribute header_size.



349
350
351
# File 'lib/omnizip/formats/rar3/reader.rb', line 349

def header_size
  @header_size
end

#header_startObject

Returns the value of attribute header_start.



349
350
351
# File 'lib/omnizip/formats/rar3/reader.rb', line 349

def header_start
  @header_start
end

#sizeObject

Returns the value of attribute size.



349
350
351
# File 'lib/omnizip/formats/rar3/reader.rb', line 349

def size
  @size
end

#typeObject

Returns the value of attribute type.



349
350
351
# File 'lib/omnizip/formats/rar3/reader.rb', line 349

def type
  @type
end