Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2895 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
4 changed files with 96 additions and 2 deletions
@ -0,0 +1,26 @@
@@ -0,0 +1,26 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
#pragma warning disable 1591
|
||||
|
||||
namespace Debugger.Wrappers.CorDebug |
||||
{ |
||||
using System; |
||||
|
||||
public partial class ICorDebugCode |
||||
{ |
||||
public unsafe byte[] GetCode() |
||||
{ |
||||
if (this.IsIL == 0) return null; |
||||
byte[] code = new byte[this.Size]; |
||||
fixed(void* pCode = code) { |
||||
this.GetCode(0, (uint)code.Length, (uint)code.Length, new IntPtr(pCode)); |
||||
} |
||||
return code; |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue