Class: Cabriolet::Models::LITSection

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeLITSection



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

#compressedObject

Returns the value of attribute compressed.



58
59
60
# File 'lib/cabriolet/models/lit_header.rb', line 58

def compressed
  @compressed
end

#compressed_lengthObject

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

#encryptedObject

Returns the value of attribute encrypted.



58
59
60
# File 'lib/cabriolet/models/lit_header.rb', line 58

def encrypted
  @encrypted
end

#nameObject

Returns the value of attribute name.



58
59
60
# File 'lib/cabriolet/models/lit_header.rb', line 58

def name
  @name
end

#reset_intervalObject

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_tableObject

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

#transformsObject

Returns the value of attribute transforms.



58
59
60
# File 'lib/cabriolet/models/lit_header.rb', line 58

def transforms
  @transforms
end

#uncompressed_lengthObject

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_sizeObject

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