Class: MachO::MachOView
- Inherits:
-
Object
- Object
- MachO::MachOView
- Defined in:
- lib/macho/view.rb
Overview
A representation of some unspecified Mach-O data.
Instance Attribute Summary collapse
-
#endianness ⇒ Symbol
readonly
The endianness of the data (
:bigor:little). -
#offset ⇒ Fixnum
readonly
The offset of the relevant data (in #raw_data).
-
#raw_data ⇒ String
readonly
The raw Mach-O data.
Instance Method Summary collapse
-
#initialize(raw_data, endianness, offset) ⇒ MachOView
constructor
Creates a new MachOView.
Constructor Details
#initialize(raw_data, endianness, offset) ⇒ MachOView
Creates a new MachOView.
17 18 19 20 21 |
# File 'lib/macho/view.rb', line 17 def initialize(raw_data, endianness, offset) @raw_data = raw_data @endianness = endianness @offset = offset end |
Instance Attribute Details
#endianness ⇒ Symbol (readonly)
Returns the endianness of the data (:big or :little).
8 9 10 |
# File 'lib/macho/view.rb', line 8 def endianness @endianness end |
#offset ⇒ Fixnum (readonly)
Returns the offset of the relevant data (in #raw_data).
11 12 13 |
# File 'lib/macho/view.rb', line 11 def offset @offset end |
#raw_data ⇒ String (readonly)
Returns the raw Mach-O data.
5 6 7 |
# File 'lib/macho/view.rb', line 5 def raw_data @raw_data end |