Class: Omnizip::Formats::Rar3::BlockHeader
- Inherits:
-
Object
- Object
- Omnizip::Formats::Rar3::BlockHeader
- Defined in:
- lib/omnizip/formats/rar3/reader.rb
Overview
RAR v3 block header model
Instance Attribute Summary collapse
-
#crc ⇒ Object
Returns the value of attribute crc.
-
#flags ⇒ Object
Returns the value of attribute flags.
-
#header_size ⇒ Object
Returns the value of attribute header_size.
-
#header_start ⇒ Object
Returns the value of attribute header_start.
-
#size ⇒ Object
Returns the value of attribute size.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(crc: nil, type: nil, flags: nil, size: nil, header_start: nil, header_size: 7) ⇒ BlockHeader
constructor
A new instance of BlockHeader.
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
#crc ⇒ Object
Returns the value of attribute crc.
349 350 351 |
# File 'lib/omnizip/formats/rar3/reader.rb', line 349 def crc @crc end |
#flags ⇒ Object
Returns the value of attribute flags.
349 350 351 |
# File 'lib/omnizip/formats/rar3/reader.rb', line 349 def flags @flags end |
#header_size ⇒ Object
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_start ⇒ Object
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 |
#size ⇒ Object
Returns the value of attribute size.
349 350 351 |
# File 'lib/omnizip/formats/rar3/reader.rb', line 349 def size @size end |
#type ⇒ Object
Returns the value of attribute type.
349 350 351 |
# File 'lib/omnizip/formats/rar3/reader.rb', line 349 def type @type end |