Class: HMap::HMapView
- Inherits:
-
Object
- Object
- HMap::HMapView
- Defined in:
- lib/cocoapods-hmap-prebuilt/hmap_view.rb
Overview
A representation of some unspecified hmap data.
Instance Attribute Summary collapse
-
#endianness ⇒ Symbol
readonly
The endianness of the data (‘:big` or `:little`).
-
#offset ⇒ Integer
readonly
The offset of the relevant data (in #raw_data).
-
#raw_data ⇒ String
readonly
The raw hmap data.
Instance Method Summary collapse
-
#initialize(raw_data, endianness, offset) ⇒ HMapView
constructor
Creates a new HMapView.
-
#to_h ⇒ Hash
A hash representation of this HMapView.
Constructor Details
#initialize(raw_data, endianness, offset) ⇒ HMapView
Creates a new HMapView.
15 16 17 18 19 |
# File 'lib/cocoapods-hmap-prebuilt/hmap_view.rb', line 15 def initialize(raw_data, endianness, offset) @raw_data = raw_data @endianness = endianness @offset = offset end |
Instance Attribute Details
#endianness ⇒ Symbol (readonly)
9 10 11 |
# File 'lib/cocoapods-hmap-prebuilt/hmap_view.rb', line 9 def endianness @endianness end |
#offset ⇒ Integer (readonly)
12 13 14 |
# File 'lib/cocoapods-hmap-prebuilt/hmap_view.rb', line 12 def offset @offset end |
#raw_data ⇒ String (readonly)
6 7 8 |
# File 'lib/cocoapods-hmap-prebuilt/hmap_view.rb', line 6 def raw_data @raw_data end |
Instance Method Details
#to_h ⇒ Hash
22 23 24 25 26 27 |
# File 'lib/cocoapods-hmap-prebuilt/hmap_view.rb', line 22 def to_h { 'endianness' => endianness, 'offset' => offset } end |