Methods

Class/Module Index [+]

Quicksearch

Rex::MachParsey::MachBase::LoadCommand

Public Class Methods

new(rawdata, endian) click to toggle source
# File lib/rex/machparsey/machbase.rb, line 180
def initialize(rawdata, endian)

        if endian == ENDIAN_MSB
                load_command = LOAD_COMMAND_MSB.make_struct
        else
                load_command = LOAD_COMMAND_LSB.make_struct
        end

        if !load_command.from_s(rawdata)
                raise MachParseError, "Couldn't parse load command"
        end

        self.struct = load_command

end

[Validate]

Generated with the Darkfish Rdoc Generator 2.