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