Class: Omnizip::Formats::Rar5::HeaderBlock
- Inherits:
-
Object
- Object
- Omnizip::Formats::Rar5::HeaderBlock
- Defined in:
- lib/omnizip/formats/rar5/reader.rb
Overview
RAR v5 header block model
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.
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_start ⇒ Object
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 |
#crc ⇒ Object
Returns the value of attribute crc.
300 301 302 |
# File 'lib/omnizip/formats/rar5/reader.rb', line 300 def crc @crc end |
#data_size ⇒ Object
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_size ⇒ Object
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 |
#flags ⇒ Object
Returns the value of attribute flags.
300 301 302 |
# File 'lib/omnizip/formats/rar5/reader.rb', line 300 def flags @flags end |
#header_start ⇒ Object
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 |
#size ⇒ Object
Returns the value of attribute size.
300 301 302 |
# File 'lib/omnizip/formats/rar5/reader.rb', line 300 def size @size end |
#type ⇒ Object
Returns the value of attribute type.
300 301 302 |
# File 'lib/omnizip/formats/rar5/reader.rb', line 300 def type @type end |
#vint_length ⇒ Object
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 |