Class NativeMethodBody
- Namespace
- AsmResolver.DotNet.Code.Native
- Assembly
- AsmResolver.DotNet.dll
Represents a method body of a method defined in a .NET assembly, implemented using machine code that runs natively on the processor.
public class NativeMethodBody : MethodBody
- Inheritance
-
NativeMethodBody
- Inherited Members
Constructors
NativeMethodBody(MethodDefinition)
Creates a new empty native method body.
public NativeMethodBody(MethodDefinition owner)
Parameters
owner
MethodDefinitionThe method that owns the body.
NativeMethodBody(MethodDefinition, byte[])
Creates a new native method body with the provided raw code stream.
public NativeMethodBody(MethodDefinition owner, byte[] code)
Parameters
owner
MethodDefinitionThe method that owns the body.
code
byte[]The raw code stream.
Properties
AddressFixups
Gets a collection of fixups that need to be applied upon writing the code to the output stream. This includes addresses to imported symbols and global fields stored in data sections.
public IList<AddressFixup> AddressFixups { get; }
Property Value
Code
Gets or sets the raw native code stream.
public byte[] Code { get; set; }
Property Value
- byte[]