Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
MethodDefOrRefTag.cs
Go to the documentation of this file.
2
4
5internal static class MethodDefOrRefTag
6{
7 internal const int NumberOfBits = 1;
8
9 internal const int LargeRowSize = 32768;
10
11 internal const uint MethodDef = 0u;
12
13 internal const uint MemberRef = 1u;
14
15 internal const uint TagMask = 1u;
16
17 internal const TableMask TablesReferenced = TableMask.MethodDef | TableMask.MemberRef;
18
19 internal const uint TagToTokenTypeByteVector = 2566u;
20
21 [MethodImpl(MethodImplOptions.AggressiveInlining)]
22 internal static EntityHandle ConvertToHandle(uint methodDefOrRef)
23 {
24 uint num = (uint)(2566 >>> (int)((methodDefOrRef & 1) << 3) << 24);
25 uint num2 = methodDefOrRef >> 1;
26 if ((num2 & 0xFF000000u) != 0)
27 {
29 }
30 return new EntityHandle(num | num2);
31 }
32}
static EntityHandle ConvertToHandle(uint methodDefOrRef)
static void InvalidCodedIndex()
Definition Throw.cs:201