class HMap::HMapView
A representation of some unspecified hmap data.
Attributes
endianness[R]
@return [Symbol] the endianness of the data (`:big` or `:little`)
offset[R]
@return [Integer] the offset of the relevant data (in {#raw_data})
raw_data[R]
@return [String] the raw hmap data
Public Class Methods
new(raw_data, endianness, offset)
click to toggle source
Creates a new HMapView
. @param raw_data
[String] the raw hmap data @param endianness [Symbol] the endianness of the data @param offset [Integer] the offset of the relevant data
# File lib/cocoapods-hmap/view.rb, line 19 def initialize(raw_data, endianness, offset) @raw_data = raw_data @endianness = endianness @offset = offset end
Public Instance Methods
to_h()
click to toggle source
@return [Hash] a hash representation of this {HMapView}.
# File lib/cocoapods-hmap/view.rb, line 26 def to_h { 'endianness' => endianness, 'offset' => offset } end