Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SetCode() [1/2]

unsafe void System.Reflection.Emit.DynamicILInfo.SetCode ( byte * code,
int codeSize,
int maxStackSize )
inline

Definition at line 53 of file DynamicILInfo.cs.

54 {
55 if (codeSize < 0)
56 {
57 throw new ArgumentOutOfRangeException("codeSize", SR.ArgumentOutOfRange_GenericPositive);
58 }
59 if (codeSize > 0 && code == null)
60 {
61 throw new ArgumentNullException("code");
62 }
63 m_code = new Span<byte>(code, codeSize).ToArray();
64 m_maxStackSize = maxStackSize;
65 }

References System.SR.ArgumentOutOfRange_GenericPositive, System.Reflection.Emit.DynamicILInfo.m_code, System.Reflection.Emit.DynamicILInfo.m_maxStackSize, and System.Span< T >.ToArray().