Class: Omnizip::Formats::SevenZip::Models::StreamInfo
- Inherits:
-
Object
- Object
- Omnizip::Formats::SevenZip::Models::StreamInfo
- Defined in:
- lib/omnizip/formats/seven_zip/models/stream_info.rb
Overview
Represents stream information in .7z format Contains packed streams, folders, and unpacked stream metadata
Instance Attribute Summary collapse
-
#digests ⇒ Object
Returns the value of attribute digests.
-
#folders ⇒ Object
Returns the value of attribute folders.
-
#num_unpack_streams_in_folders ⇒ Object
Returns the value of attribute num_unpack_streams_in_folders.
-
#pack_crcs ⇒ Object
Returns the value of attribute pack_crcs.
-
#pack_pos ⇒ Object
Returns the value of attribute pack_pos.
-
#pack_sizes ⇒ Object
Returns the value of attribute pack_sizes.
-
#unpack_sizes ⇒ Object
Returns the value of attribute unpack_sizes.
Instance Method Summary collapse
-
#initialize ⇒ StreamInfo
constructor
Initialize stream info.
-
#num_folders ⇒ Integer
Get total number of folders.
-
#num_pack_streams ⇒ Integer
Get total number of pack streams.
Constructor Details
#initialize ⇒ StreamInfo
Initialize stream info
15 16 17 18 19 20 21 22 23 |
# File 'lib/omnizip/formats/seven_zip/models/stream_info.rb', line 15 def initialize @pack_pos = 0 @pack_sizes = [] @pack_crcs = [] @folders = [] @num_unpack_streams_in_folders = [] @unpack_sizes = [] @digests = [] end |
Instance Attribute Details
#digests ⇒ Object
Returns the value of attribute digests.
10 11 12 |
# File 'lib/omnizip/formats/seven_zip/models/stream_info.rb', line 10 def digests @digests end |
#folders ⇒ Object
Returns the value of attribute folders.
10 11 12 |
# File 'lib/omnizip/formats/seven_zip/models/stream_info.rb', line 10 def folders @folders end |
#num_unpack_streams_in_folders ⇒ Object
Returns the value of attribute num_unpack_streams_in_folders.
10 11 12 |
# File 'lib/omnizip/formats/seven_zip/models/stream_info.rb', line 10 def num_unpack_streams_in_folders @num_unpack_streams_in_folders end |
#pack_crcs ⇒ Object
Returns the value of attribute pack_crcs.
10 11 12 |
# File 'lib/omnizip/formats/seven_zip/models/stream_info.rb', line 10 def pack_crcs @pack_crcs end |
#pack_pos ⇒ Object
Returns the value of attribute pack_pos.
10 11 12 |
# File 'lib/omnizip/formats/seven_zip/models/stream_info.rb', line 10 def pack_pos @pack_pos end |
#pack_sizes ⇒ Object
Returns the value of attribute pack_sizes.
10 11 12 |
# File 'lib/omnizip/formats/seven_zip/models/stream_info.rb', line 10 def pack_sizes @pack_sizes end |
#unpack_sizes ⇒ Object
Returns the value of attribute unpack_sizes.
10 11 12 |
# File 'lib/omnizip/formats/seven_zip/models/stream_info.rb', line 10 def unpack_sizes @unpack_sizes end |
Instance Method Details
#num_folders ⇒ Integer
Get total number of folders
28 29 30 |
# File 'lib/omnizip/formats/seven_zip/models/stream_info.rb', line 28 def num_folders @folders.size end |
#num_pack_streams ⇒ Integer
Get total number of pack streams
35 36 37 |
# File 'lib/omnizip/formats/seven_zip/models/stream_info.rb', line 35 def num_pack_streams @pack_sizes.size end |