Class: Omnizip::Formats::Rar5::Reader::HeaderBlock
- Inherits:
-
Object
- Object
- Omnizip::Formats::Rar5::Reader::HeaderBlock
- Defined in:
- lib/omnizip/formats/rar5/reader.rb
Instance Attribute Summary collapse
-
#content_start ⇒ Object
Returns the value of attribute content_start.
-
#crc ⇒ Object
Returns the value of attribute crc.
-
#data_size ⇒ Object
Returns the value of attribute data_size.
-
#extra_size ⇒ Object
Returns the value of attribute extra_size.
-
#flags ⇒ Object
Returns the value of attribute flags.
-
#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.
-
#vint_length ⇒ Object
Returns the value of attribute vint_length.
Instance Method Summary collapse
-
#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
constructor
A new instance of HeaderBlock.
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_start ⇒ Object
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 |
#crc ⇒ Object
Returns the value of attribute crc.
80 81 82 |
# File 'lib/omnizip/formats/rar5/reader.rb', line 80 def crc @crc end |
#data_size ⇒ Object
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_size ⇒ Object
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 |
#flags ⇒ Object
Returns the value of attribute flags.
80 81 82 |
# File 'lib/omnizip/formats/rar5/reader.rb', line 80 def flags @flags end |
#header_start ⇒ Object
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 |
#size ⇒ Object
Returns the value of attribute size.
80 81 82 |
# File 'lib/omnizip/formats/rar5/reader.rb', line 80 def size @size end |
#type ⇒ Object
Returns the value of attribute type.
80 81 82 |
# File 'lib/omnizip/formats/rar5/reader.rb', line 80 def type @type end |
#vint_length ⇒ Object
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 |