Class: Cabriolet::Models::LITSection
- Inherits:
-
Object
- Object
- Cabriolet::Models::LITSection
- Defined in:
- lib/cabriolet/models/lit_header.rb
Overview
Represents a section within the LIT file
Sections contain compressed/encrypted data with transform layers
Instance Attribute Summary collapse
-
#compressed ⇒ Object
Returns the value of attribute compressed.
-
#compressed_length ⇒ Object
Returns the value of attribute compressed_length.
-
#encrypted ⇒ Object
Returns the value of attribute encrypted.
-
#name ⇒ Object
Returns the value of attribute name.
-
#reset_interval ⇒ Object
Returns the value of attribute reset_interval.
-
#reset_table ⇒ Object
Returns the value of attribute reset_table.
-
#transforms ⇒ Object
Returns the value of attribute transforms.
-
#uncompressed_length ⇒ Object
Returns the value of attribute uncompressed_length.
-
#window_size ⇒ Object
Returns the value of attribute window_size.
Instance Method Summary collapse
-
#compressed? ⇒ Boolean
Check if section is compressed.
-
#encrypted? ⇒ Boolean
Check if section is encrypted.
-
#initialize ⇒ LITSection
constructor
A new instance of LITSection.
Constructor Details
#initialize ⇒ LITSection
62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/cabriolet/models/lit_header.rb', line 62 def initialize @name = "" @transforms = [] @compressed = false @encrypted = false @uncompressed_length = 0 @compressed_length = 0 @window_size = 0 @reset_interval = 0 @reset_table = [] end |
Instance Attribute Details
#compressed ⇒ Object
Returns the value of attribute compressed.
58 59 60 |
# File 'lib/cabriolet/models/lit_header.rb', line 58 def compressed @compressed end |
#compressed_length ⇒ Object
Returns the value of attribute compressed_length.
58 59 60 |
# File 'lib/cabriolet/models/lit_header.rb', line 58 def compressed_length @compressed_length end |
#encrypted ⇒ Object
Returns the value of attribute encrypted.
58 59 60 |
# File 'lib/cabriolet/models/lit_header.rb', line 58 def encrypted @encrypted end |
#name ⇒ Object
Returns the value of attribute name.
58 59 60 |
# File 'lib/cabriolet/models/lit_header.rb', line 58 def name @name end |
#reset_interval ⇒ Object
Returns the value of attribute reset_interval.
58 59 60 |
# File 'lib/cabriolet/models/lit_header.rb', line 58 def reset_interval @reset_interval end |
#reset_table ⇒ Object
Returns the value of attribute reset_table.
58 59 60 |
# File 'lib/cabriolet/models/lit_header.rb', line 58 def reset_table @reset_table end |
#transforms ⇒ Object
Returns the value of attribute transforms.
58 59 60 |
# File 'lib/cabriolet/models/lit_header.rb', line 58 def transforms @transforms end |
#uncompressed_length ⇒ Object
Returns the value of attribute uncompressed_length.
58 59 60 |
# File 'lib/cabriolet/models/lit_header.rb', line 58 def uncompressed_length @uncompressed_length end |
#window_size ⇒ Object
Returns the value of attribute window_size.
58 59 60 |
# File 'lib/cabriolet/models/lit_header.rb', line 58 def window_size @window_size end |
Instance Method Details
#compressed? ⇒ Boolean
Check if section is compressed
77 78 79 |
# File 'lib/cabriolet/models/lit_header.rb', line 77 def compressed? compressed end |
#encrypted? ⇒ Boolean
Check if section is encrypted
84 85 86 |
# File 'lib/cabriolet/models/lit_header.rb', line 84 def encrypted? encrypted end |