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

◆ AllocateTypeAssociatedMemory() [2/2]

static IntPtr System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory ( Type type,
int size )
inlinestatic

Definition at line 200 of file RuntimeHelpers.cs.

201 {
202 RuntimeType type2 = type as RuntimeType;
203 if (type2 == null)
204 {
205 throw new ArgumentException(SR.Arg_MustBeType, "type");
206 }
207 if (size < 0)
208 {
209 throw new ArgumentOutOfRangeException("size");
210 }
211 return AllocateTypeAssociatedMemory(new QCallTypeHandle(ref type2), (uint)size);
212 }
static IntPtr AllocateTypeAssociatedMemory(Type type, int size)

References System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(), System.SR.Arg_MustBeType, System.Runtime.Serialization.Dictionary, and System.type.

Referenced by System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory().