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

            body._readingContext = context.CreateSubContext(context.Reader.StartPosition);
            return(body);
        }
示例#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);
        }
示例#3
0
 public static X86MethodBody FromReadingContext(ReadingContext context)
 {
     var body = new X86MethodBody();
     body._readingContext = context.CreateSubContext(context.Reader.StartPosition);
     return body;
 }