Represents a chunk of x86 instructions.
Inheritance: FileSegment
Exemplo n.º 1
0
        public static X86MethodBody FromReadingContext(ReadingContext context)
        {
            var body = new X86MethodBody();

            body._readingContext = context.CreateSubContext(context.Reader.StartPosition);
            return(body);
        }
Exemplo n.º 2
0
        public static X86MethodBody FromReader(IBinaryStreamReader reader)
        {
            var body = new X86MethodBody();

            var disassembler = new X86Disassembler(reader);

            while (reader.Position < reader.StartPosition + reader.Length)
            {
                body.Instructions.Add(disassembler.ReadNextInstruction());
            }

            return(body);
        }
Exemplo n.º 3
0
 public static X86MethodBody FromReadingContext(ReadingContext context)
 {
     var body = new X86MethodBody();
     body._readingContext = context.CreateSubContext(context.Reader.StartPosition);
     return body;
 }