class MachO::MachOView

A representation of some unspecified Mach-O data.

Attributes

endianness[R]

@return [Symbol] the endianness of the data (`:big` or `:little`)

offset[R]

@return [Fixnum] the offset of the relevant data (in {#raw_data})

raw_data[R]

@return [String] the raw Mach-O data

Public Class Methods

new(raw_data, endianness, offset) click to toggle source

Creates a new MachOView. @param raw_data [String] the raw Mach-O data @param endianness [Symbol] the endianness of the data @param offset [Fixnum] the offset of the relevant data

# File lib/macho/view.rb, line 17
def initialize(raw_data, endianness, offset)
  @raw_data = raw_data
  @endianness = endianness
  @offset = offset
end