@@ -27,7 +27,7 @@ public Disassembler(CoreFunctionsManager coreFunctions) |
27 | 27 | /// <param name="address">The address of the code.</param> |
28 | 28 | /// <param name="length">The length of the code in bytes.</param> |
29 | 29 | /// <returns>A list of <see cref="DisassembledInstruction"/>.</returns> |
30 | | - public IList<DisassembledInstruction> RemoteDisassembleCode(RemoteProcess process, IntPtr address, int length) |
| 30 | + public IReadOnlyList<DisassembledInstruction> RemoteDisassembleCode(RemoteProcess process, IntPtr address, int length) |
31 | 31 | { |
32 | 32 | Contract.Requires(process != null); |
33 | 33 | Contract.Ensures(Contract.Result<IList<DisassembledInstruction>>() != null); |
@@ -41,7 +41,7 @@ public IList<DisassembledInstruction> RemoteDisassembleCode(RemoteProcess proces |
41 | 41 | /// <param name="length">The length of the code in bytes.</param> |
42 | 42 | /// <param name="maxInstructions">The maximum number of instructions to disassemble. If <paramref name="maxInstructions"/> is -1, all available instructions get returned.</param> |
43 | 43 | /// <returns>A list of <see cref="DisassembledInstruction"/>.</returns> |
44 | | - public IList<DisassembledInstruction> RemoteDisassembleCode(RemoteProcess process, IntPtr address, int length, int maxInstructions) |
| 44 | + public IReadOnlyList<DisassembledInstruction> RemoteDisassembleCode(RemoteProcess process, IntPtr address, int length, int maxInstructions) |
45 | 45 | { |
46 | 46 | Contract.Requires(process != null); |
47 | 47 | Contract.Ensures(Contract.Result<IList<DisassembledInstruction>>() != null); |
@@ -56,7 +56,7 @@ public IList<DisassembledInstruction> RemoteDisassembleCode(RemoteProcess proces |
56 | 56 | /// <param name="virtualAddress">The virtual address of the code. This allows to decode instructions located anywhere in memory even if they are not at their original place.</param> |
57 | 57 | /// <param name="maxInstructions">The maximum number of instructions to disassemble. If <paramref name="maxInstructions"/> is -1, all available instructions get returned.</param> |
58 | 58 | /// <returns>A list of <see cref="DisassembledInstruction"/>.</returns> |
59 | | - public IList<DisassembledInstruction> DisassembleCode(byte[] data, IntPtr virtualAddress, int maxInstructions) |
| 59 | + public IReadOnlyList<DisassembledInstruction> DisassembleCode(byte[] data, IntPtr virtualAddress, int maxInstructions) |
60 | 60 | { |
61 | 61 | Contract.Requires(data != null); |
62 | 62 | Contract.Ensures(Contract.Result<IList<DisassembledInstruction>>() != null); |
@@ -89,7 +89,7 @@ public IList<DisassembledInstruction> DisassembleCode(byte[] data, IntPtr virtua |
89 | 89 | /// <param name="address">The address of the code.</param> |
90 | 90 | /// <param name="maxLength">The maximum maxLength of the code.</param> |
91 | 91 | /// <returns>A list of <see cref="DisassembledInstruction"/> which belong to the function.</returns> |
92 | | - public IList<DisassembledInstruction> RemoteDisassembleFunction(RemoteProcess process, IntPtr address, int maxLength) |
| 92 | + public IReadOnlyList<DisassembledInstruction> RemoteDisassembleFunction(RemoteProcess process, IntPtr address, int maxLength) |
93 | 93 | { |
94 | 94 | Contract.Requires(process != null); |
95 | 95 | Contract.Ensures(Contract.Result<IEnumerable<DisassembledInstruction>>() != null); |
@@ -103,7 +103,7 @@ public IList<DisassembledInstruction> RemoteDisassembleFunction(RemoteProcess pr |
103 | 103 | /// <param name="data">The data to disassemble.</param> |
104 | 104 | /// <param name="virtualAddress">The virtual address of the code. This allows to decode instructions located anywhere in memory even if they are not at their original place.</param> |
105 | 105 | /// <returns>A list of <see cref="DisassembledInstruction"/> which belong to the function.</returns> |
106 | | - public IList<DisassembledInstruction> DisassembleFunction(byte[] data, IntPtr virtualAddress) |
| 106 | + public IReadOnlyList<DisassembledInstruction> DisassembleFunction(byte[] data, IntPtr virtualAddress) |
107 | 107 | { |
108 | 108 | Contract.Requires(data != null); |
109 | 109 | Contract.Ensures(Contract.Result<IEnumerable<DisassembledInstruction>>() != null); |
|