Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ResolutionScopeTag.cs
Go to the documentation of this file.
1
using
System.Runtime.CompilerServices
;
2
3
namespace
System.Reflection.Metadata.Ecma335
;
4
5
internal
static
class
ResolutionScopeTag
6
{
7
internal
const
int
NumberOfBits
= 2;
8
9
internal
const
int
LargeRowSize
= 16384;
10
11
internal
const
uint
Module
= 0u;
12
13
internal
const
uint
ModuleRef
= 1u;
14
15
internal
const
uint
AssemblyRef
= 2u;
16
17
internal
const
uint
TypeRef
= 3u;
18
19
internal
const
uint
TagMask
= 3u;
20
21
internal
const
uint
TagToTokenTypeByteVector
= 19077632u;
22
23
internal
const
TableMask
TablesReferenced
= TableMask.Module | TableMask.TypeRef | TableMask.ModuleRef |
TableMask
.AssemblyRef;
24
25
[
MethodImpl
(
MethodImplOptions
.AggressiveInlining)]
26
internal
static
EntityHandle
ConvertToHandle
(uint resolutionScope)
27
{
28
uint num = (uint)(19077632 >>> (
int
)((resolutionScope & 3) << 3) << 24);
29
uint num2 = resolutionScope >> 2;
30
if
((num2 & 0xFF000000u) != 0)
31
{
32
Throw
.
InvalidCodedIndex
();
33
}
34
return
new
EntityHandle
(num | num2);
35
}
36
}
System.Reflection.Metadata.Ecma335.ResolutionScopeTag.AssemblyRef
const uint AssemblyRef
Definition
ResolutionScopeTag.cs:15
System.Reflection.Metadata.Ecma335.ResolutionScopeTag.LargeRowSize
const int LargeRowSize
Definition
ResolutionScopeTag.cs:9
System.Reflection.Metadata.Ecma335.ResolutionScopeTag.ModuleRef
const uint ModuleRef
Definition
ResolutionScopeTag.cs:13
System.Reflection.Metadata.Ecma335.ResolutionScopeTag.TagMask
const uint TagMask
Definition
ResolutionScopeTag.cs:19
System.Reflection.Metadata.Ecma335.ResolutionScopeTag.NumberOfBits
const int NumberOfBits
Definition
ResolutionScopeTag.cs:7
System.Reflection.Metadata.Ecma335.ResolutionScopeTag.TypeRef
const uint TypeRef
Definition
ResolutionScopeTag.cs:17
System.Reflection.Metadata.Ecma335.ResolutionScopeTag.TagToTokenTypeByteVector
const uint TagToTokenTypeByteVector
Definition
ResolutionScopeTag.cs:21
System.Reflection.Metadata.Ecma335.ResolutionScopeTag.ConvertToHandle
static EntityHandle ConvertToHandle(uint resolutionScope)
Definition
ResolutionScopeTag.cs:26
System.Reflection.Metadata.Ecma335.ResolutionScopeTag.TablesReferenced
const TableMask TablesReferenced
Definition
ResolutionScopeTag.cs:23
System.Reflection.Metadata.Ecma335.ResolutionScopeTag
Definition
ResolutionScopeTag.cs:6
System.Reflection.Module
Definition
Module.cs:9
System.Reflection.Throw.InvalidCodedIndex
static void InvalidCodedIndex()
Definition
Throw.cs:201
System.Reflection.Throw
Definition
Throw.cs:9
System.Reflection.Metadata.Ecma335.TableIndex.MethodImpl
@ MethodImpl
System.Reflection.Metadata.Ecma335.TableMask
TableMask
Definition
TableMask.cs:5
System.Reflection.Metadata.Ecma335
Definition
ArrayShapeEncoder.cs:3
System.Runtime.CompilerServices.MethodImplOptions
MethodImplOptions
Definition
MethodImplOptions.cs:5
System.Runtime.CompilerServices
Definition
NullablePublicOnlyAttribute.cs:3
System.Reflection.Metadata.EntityHandle
Definition
EntityHandle.cs:6
source
System.Reflection.Metadata
System.Reflection.Metadata.Ecma335
ResolutionScopeTag.cs
Generated by
1.10.0