46 public void SetCode(
byte[]? code,
int maxStackSize)
48 m_code = ((code !=
null) ? ((
byte[])code.Clone()) :
Array.Empty<
byte>());
53 public unsafe
void SetCode(
byte* code,
int codeSize,
int maxStackSize)
59 if (codeSize > 0 && code ==
null)
75 if (exceptionsSize < 0)
88 m_localSignature = ((localSignature !=
null) ? ((
byte[])localSignature.Clone()) :
Array.Empty<
byte>());
94 if (signatureSize < 0)
98 if (signatureSize > 0 && localSignature ==
null)
int GetTokenFor(RuntimeMethodHandle method)
DynamicScope DynamicScope
int GetTokenFor(RuntimeFieldHandle field)
void SetCode(byte[]? code, int maxStackSize)
unsafe void SetCode(byte *code, int codeSize, int maxStackSize)
int GetTokenFor(RuntimeMethodHandle method, RuntimeTypeHandle contextType)
void GetCallableMethod(RuntimeModule module, DynamicMethod dm)
unsafe void SetLocalSignature(byte *localSignature, int signatureSize)
void SetLocalSignature(byte[]? localSignature)
unsafe void SetExceptions(byte *exceptions, int exceptionsSize)
void SetExceptions(byte[]? exceptions)
int GetTokenFor(byte[] signature)
int GetTokenFor(RuntimeTypeHandle type)
DynamicILInfo(DynamicMethod method, byte[] methodSignature)
int GetTokenFor(string literal)
int GetTokenFor(DynamicMethod method)
int GetTokenFor(RuntimeFieldHandle field, RuntimeTypeHandle contextType)
int GetTokenFor(VarArgMethod varArgMethod)
static SignatureHelper GetLocalVarSigHelper()
static string ArgumentOutOfRange_GenericPositive
static IRuntimeMethodInfo GetDynamicMethod(DynamicMethod method, RuntimeModule module, string name, byte[] sig, Resolver resolver)