Class: Nitro::OvtEntry
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Nitro::OvtEntry
- Defined in:
- lib/nitro/nitro.rb
Instance Method Summary collapse
- #compressed_size ⇒ Object
- #fid ⇒ Object
- #id ⇒ Object
- #is_compressed? ⇒ Boolean (also: #compressed?)
- #ram_addr ⇒ Object
- #sinit_bounds ⇒ Object
Instance Method Details
#compressed_size ⇒ Object
99 100 101 |
# File 'lib/nitro/nitro.rb', line 99 def compressed_size (self[:comp_field] >> 8) & 0xffffff # 24 bits end |
#fid ⇒ Object
95 96 97 |
# File 'lib/nitro/nitro.rb', line 95 def fid self[:file_id] end |
#id ⇒ Object
83 84 85 |
# File 'lib/nitro/nitro.rb', line 83 def id self[:overlay_id] end |
#is_compressed? ⇒ Boolean Also known as: compressed?
103 104 105 |
# File 'lib/nitro/nitro.rb', line 103 def is_compressed? (self[:comp_field] & 0xff) == 1 # 8 bits end |
#ram_addr ⇒ Object
87 88 89 |
# File 'lib/nitro/nitro.rb', line 87 def ram_addr self[:ram_address] end |
#sinit_bounds ⇒ Object
91 92 93 |
# File 'lib/nitro/nitro.rb', line 91 def sinit_bounds self[:sinit_start]..self[:sinit_end] end |