mirror of https://github.com/icedland/iced.git
Update README
This commit is contained in:
parent
5206cf056a
commit
f451a69a50
|
@ -530,10 +530,9 @@ Disassembled code:
|
||||||
decoder.IP = exampleCodeRIP;
|
decoder.IP = exampleCodeRIP;
|
||||||
ulong endRip = decoder.IP + (uint)exampleCode.Length;
|
ulong endRip = decoder.IP + (uint)exampleCode.Length;
|
||||||
|
|
||||||
// For PERF, use a factory to create the instruction info if you need register
|
// Use a factory to create the instruction info if you need register and
|
||||||
// and memory usage. If it's something else, eg. encoding, flags, etc, there
|
// memory usage. If it's something else, eg. encoding, flags, etc, there
|
||||||
// are properties on Instruction that can be used instead that don't allocate.
|
// are properties on Instruction that can be used instead.
|
||||||
// The factory only allocates once and reuses the internal arrays
|
|
||||||
var instrInfoFactory = new InstructionInfoFactory();
|
var instrInfoFactory = new InstructionInfoFactory();
|
||||||
while (decoder.IP < endRip) {
|
while (decoder.IP < endRip) {
|
||||||
decoder.Decode(out var instr);
|
decoder.Decode(out var instr);
|
||||||
|
|
Loading…
Reference in New Issue