Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
HasSemanticsTag.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
HasSemanticsTag
6
{
7
internal
const
int
NumberOfBits
= 1;
8
9
internal
const
int
LargeRowSize
= 32768;
10
11
internal
const
uint
Event
= 0u;
12
13
internal
const
uint
Property
= 1u;
14
15
internal
const
uint
TagMask
= 1u;
16
17
internal
const
TableMask
TablesReferenced
= TableMask.Event |
TableMask
.Property;
18
19
internal
const
uint
TagToTokenTypeByteVector
= 5908u;
20
21
[
MethodImpl
(
MethodImplOptions
.AggressiveInlining)]
22
internal
static
EntityHandle
ConvertToHandle
(uint hasSemantic)
23
{
24
uint num = (uint)(5908 >>> (
int
)((hasSemantic & 1) << 3) << 24);
25
uint num2 = hasSemantic >> 1;
26
if
((num2 & 0xFF000000u) != 0)
27
{
28
Throw
.
InvalidCodedIndex
();
29
}
30
return
new
EntityHandle
(num | num2);
31
}
32
33
internal
static
uint
ConvertEventHandleToTag
(
EventDefinitionHandle
eventDef)
34
{
35
return
(uint)(eventDef.RowId << 1) | 0u;
36
}
37
38
internal
static
uint
ConvertPropertyHandleToTag
(
PropertyDefinitionHandle
propertyDef)
39
{
40
return
(uint)(propertyDef.RowId << 1) | 1u;
41
}
42
}
System.Reflection.Metadata.Ecma335.HasSemanticsTag.TagMask
const uint TagMask
Definition
HasSemanticsTag.cs:15
System.Reflection.Metadata.Ecma335.HasSemanticsTag.NumberOfBits
const int NumberOfBits
Definition
HasSemanticsTag.cs:7
System.Reflection.Metadata.Ecma335.HasSemanticsTag.LargeRowSize
const int LargeRowSize
Definition
HasSemanticsTag.cs:9
System.Reflection.Metadata.Ecma335.HasSemanticsTag.ConvertToHandle
static EntityHandle ConvertToHandle(uint hasSemantic)
Definition
HasSemanticsTag.cs:22
System.Reflection.Metadata.Ecma335.HasSemanticsTag.TablesReferenced
const TableMask TablesReferenced
Definition
HasSemanticsTag.cs:17
System.Reflection.Metadata.Ecma335.HasSemanticsTag.ConvertEventHandleToTag
static uint ConvertEventHandleToTag(EventDefinitionHandle eventDef)
Definition
HasSemanticsTag.cs:33
System.Reflection.Metadata.Ecma335.HasSemanticsTag.ConvertPropertyHandleToTag
static uint ConvertPropertyHandleToTag(PropertyDefinitionHandle propertyDef)
Definition
HasSemanticsTag.cs:38
System.Reflection.Metadata.Ecma335.HasSemanticsTag.TagToTokenTypeByteVector
const uint TagToTokenTypeByteVector
Definition
HasSemanticsTag.cs:19
System.Reflection.Metadata.Ecma335.HasSemanticsTag.Event
const uint Event
Definition
HasSemanticsTag.cs:11
System.Reflection.Metadata.Ecma335.HasSemanticsTag.Property
const uint Property
Definition
HasSemanticsTag.cs:13
System.Reflection.Metadata.Ecma335.HasSemanticsTag
Definition
HasSemanticsTag.cs:6
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
System.Reflection.Metadata.EventDefinitionHandle
Definition
EventDefinitionHandle.cs:4
System.Reflection.Metadata.PropertyDefinitionHandle
Definition
PropertyDefinitionHandle.cs:4
source
System.Reflection.Metadata
System.Reflection.Metadata.Ecma335
HasSemanticsTag.cs
Generated by
1.10.0