Example #1
0
 public Arch(@string Name = default, ArchFamily Family = default, binary.ByteOrder ByteOrder = default, long PtrSize = default, long RegSize = default, long MinLC = default)
 {
     this.Name      = Name;
     this.Family    = Family;
     this.ByteOrder = ByteOrder;
     this.PtrSize   = PtrSize;
     this.RegSize   = RegSize;
     this.MinLC     = MinLC;
 }
Example #2
0
 public ldMachoObj(ref ptr <bio.Reader> f = default, long @base = default, long length = default, bool is64 = default, @string name = default, binary.ByteOrder e = default, ulong cputype = default, ulong subcputype = default, uint filetype = default, uint flags = default, slice <ldMachoCmd> cmd = default, ulong ncmd = default)
 {
     this.f          = f;
     this.@base      = @base;
     this.length     = length;
     this.is64       = is64;
     this.name       = name;
     this.e          = e;
     this.cputype    = cputype;
     this.subcputype = subcputype;
     this.filetype   = filetype;
     this.flags      = flags;
     this.cmd        = cmd;
     this.ncmd       = ncmd;
 }
Example #3
0
 // Decode decodes the leading bytes in src as a single instruction using
 // byte order ord.
 public static (Inst, error) Decode(slice <byte> src, binary.ByteOrder ord)
 {
     Inst  inst = default;
     error err  = default !;
Example #4
0
 public ElfObj(ref ptr <bio.Reader> f = default, long @base = default, long length = default, long is64 = default, @string name = default, binary.ByteOrder e = default, slice <ElfSect> sect = default, ulong nsect = default, long nsymtab = default, ref ptr <ElfSect> symtab = default, ref ptr <ElfSect> symstr = default, uint type_ = default, uint machine = default, uint version = default, ulong entry = default, ulong phoff = default, ulong shoff = default, uint flags = default, uint ehsize = default, uint phentsize = default, uint phnum = default, uint shentsize = default, uint shnum = default, uint shstrndx = default)
 {
     this.f         = f;
     this.@base     = @base;
     this.length    = length;
     this.is64      = is64;
     this.name      = name;
     this.e         = e;
     this.sect      = sect;
     this.nsect     = nsect;
     this.nsymtab   = nsymtab;
     this.symtab    = symtab;
     this.symstr    = symstr;
     this.type_     = type_;
     this.machine   = machine;
     this.version   = version;
     this.entry     = entry;
     this.phoff     = phoff;
     this.shoff     = shoff;
     this.flags     = flags;
     this.ehsize    = ehsize;
     this.phentsize = phentsize;
     this.phnum     = phnum;
     this.shentsize = shentsize;
     this.shnum     = shnum;
     this.shstrndx  = shstrndx;
 }
Example #5
0
 public loadCmdReader(long offset = default, long next = default, ref ptr <os.File> f = default, binary.ByteOrder order = default)
 {
     this.offset = offset;
     this.next   = next;
     this.f      = f;
     this.order  = order;
 }
Example #6
0
 // parseNotes returns the notes from a SHT_NOTE section or PT_NOTE segment.
 private static (slice <elfNote>, error) parseNotes(io.Reader reader, long alignment, binary.ByteOrder order)
 {
     slice <elfNote> _p0 = default;
     error           _p0 = default !;
Example #7
0
 public Disasm(slice <Sym> syms = default, Liner pcln = default, slice <byte> text = default, ulong textStart = default, ulong textEnd = default, @string goarch = default, disasmFunc disasm = default, binary.ByteOrder byteOrder = default)
 {
     this.syms      = syms;
     this.pcln      = pcln;
     this.text      = text;
     this.textStart = textStart;
     this.textEnd   = textEnd;
     this.goarch    = goarch;
     this.disasm    = disasm;
     this.byteOrder = byteOrder;
 }