Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CustomAttributeElementTypeEncoder.cs
Go to the documentation of this file.
1
namespace
System.Reflection.Metadata.Ecma335
;
2
3
public
readonly
struct
CustomAttributeElementTypeEncoder
4
{
5
public
BlobBuilder
Builder
{
get
; }
6
7
public
CustomAttributeElementTypeEncoder
(
BlobBuilder
builder)
8
{
9
Builder
= builder;
10
}
11
12
private
void
WriteTypeCode
(
SerializationTypeCode
value
)
13
{
14
Builder
.
WriteByte
((
byte
)
value
);
15
}
16
17
public
void
Boolean
()
18
{
19
WriteTypeCode
(
SerializationTypeCode
.Boolean);
20
}
21
22
public
void
Char
()
23
{
24
WriteTypeCode
(
SerializationTypeCode
.Char);
25
}
26
27
public
void
SByte
()
28
{
29
WriteTypeCode
(
SerializationTypeCode
.SByte);
30
}
31
32
public
void
Byte
()
33
{
34
WriteTypeCode
(
SerializationTypeCode
.Byte);
35
}
36
37
public
void
Int16
()
38
{
39
WriteTypeCode
(
SerializationTypeCode
.Int16);
40
}
41
42
public
void
UInt16
()
43
{
44
WriteTypeCode
(
SerializationTypeCode
.UInt16);
45
}
46
47
public
void
Int32
()
48
{
49
WriteTypeCode
(
SerializationTypeCode
.Int32);
50
}
51
52
public
void
UInt32
()
53
{
54
WriteTypeCode
(
SerializationTypeCode
.UInt32);
55
}
56
57
public
void
Int64
()
58
{
59
WriteTypeCode
(
SerializationTypeCode
.Int64);
60
}
61
62
public
void
UInt64
()
63
{
64
WriteTypeCode
(
SerializationTypeCode
.UInt64);
65
}
66
67
public
void
Single
()
68
{
69
WriteTypeCode
(
SerializationTypeCode
.Single);
70
}
71
72
public
void
Double
()
73
{
74
WriteTypeCode
(
SerializationTypeCode
.Double);
75
}
76
77
public
void
String
()
78
{
79
WriteTypeCode
(
SerializationTypeCode
.String);
80
}
81
82
public
void
PrimitiveType
(
PrimitiveSerializationTypeCode
type
)
83
{
84
if
(
type
- 2 <=
PrimitiveSerializationTypeCode
.Single)
85
{
86
WriteTypeCode
((
SerializationTypeCode
)
type
);
87
}
88
else
89
{
90
Throw
.
ArgumentOutOfRange
(
"type"
);
91
}
92
}
93
94
public
void
SystemType
()
95
{
96
WriteTypeCode
(
SerializationTypeCode
.Type);
97
}
98
99
public
void
Enum
(
string
enumTypeName)
100
{
101
if
(enumTypeName ==
null
)
102
{
103
Throw
.
ArgumentNull
(
"enumTypeName"
);
104
}
105
if
(enumTypeName.Length == 0)
106
{
107
Throw
.
ArgumentEmptyString
(
"enumTypeName"
);
108
}
109
WriteTypeCode
(
SerializationTypeCode
.Enum);
110
Builder
.
WriteSerializedString
(enumTypeName);
111
}
112
}
System.Reflection.Metadata.BlobBuilder.WriteSerializedString
void WriteSerializedString(string? value)
Definition
BlobBuilder.cs:828
System.Reflection.Metadata.BlobBuilder.WriteByte
void WriteByte(byte value)
Definition
BlobBuilder.cs:669
System.Reflection.Metadata.BlobBuilder
Definition
BlobBuilder.cs:14
System.Reflection.Throw.ArgumentNull
static void ArgumentNull(string parameterName)
Definition
Throw.cs:110
System.Reflection.Throw.ArgumentEmptyString
static void ArgumentEmptyString(string parameterName)
Definition
Throw.cs:117
System.Reflection.Throw.ArgumentOutOfRange
static void ArgumentOutOfRange(string parameterName)
Definition
Throw.cs:145
System.Reflection.Throw
Definition
Throw.cs:9
System.Reflection.Metadata.Ecma335
Definition
ArrayShapeEncoder.cs:3
System.Reflection.Metadata.SerializationTypeCode
SerializationTypeCode
Definition
SerializationTypeCode.cs:4
System.Reflection.Metadata.PrimitiveSerializationTypeCode
PrimitiveSerializationTypeCode
Definition
PrimitiveSerializationTypeCode.cs:4
System.ExceptionArgument.value
@ value
System.ExceptionArgument.type
@ type
System.Reflection.Metadata.Ecma335.CustomAttributeElementTypeEncoder.Builder
BlobBuilder Builder
Definition
CustomAttributeElementTypeEncoder.cs:5
System.Reflection.Metadata.Ecma335.CustomAttributeElementTypeEncoder.Double
void Double()
Definition
CustomAttributeElementTypeEncoder.cs:72
System.Reflection.Metadata.Ecma335.CustomAttributeElementTypeEncoder.Int16
void Int16()
Definition
CustomAttributeElementTypeEncoder.cs:37
System.Reflection.Metadata.Ecma335.CustomAttributeElementTypeEncoder.UInt32
void UInt32()
Definition
CustomAttributeElementTypeEncoder.cs:52
System.Reflection.Metadata.Ecma335.CustomAttributeElementTypeEncoder.UInt64
void UInt64()
Definition
CustomAttributeElementTypeEncoder.cs:62
System.Reflection.Metadata.Ecma335.CustomAttributeElementTypeEncoder.UInt16
void UInt16()
Definition
CustomAttributeElementTypeEncoder.cs:42
System.Reflection.Metadata.Ecma335.CustomAttributeElementTypeEncoder.PrimitiveType
void PrimitiveType(PrimitiveSerializationTypeCode type)
Definition
CustomAttributeElementTypeEncoder.cs:82
System.Reflection.Metadata.Ecma335.CustomAttributeElementTypeEncoder.Int64
void Int64()
Definition
CustomAttributeElementTypeEncoder.cs:57
System.Reflection.Metadata.Ecma335.CustomAttributeElementTypeEncoder.CustomAttributeElementTypeEncoder
CustomAttributeElementTypeEncoder(BlobBuilder builder)
Definition
CustomAttributeElementTypeEncoder.cs:7
System.Reflection.Metadata.Ecma335.CustomAttributeElementTypeEncoder.String
void String()
Definition
CustomAttributeElementTypeEncoder.cs:77
System.Reflection.Metadata.Ecma335.CustomAttributeElementTypeEncoder.Byte
void Byte()
Definition
CustomAttributeElementTypeEncoder.cs:32
System.Reflection.Metadata.Ecma335.CustomAttributeElementTypeEncoder.Int32
void Int32()
Definition
CustomAttributeElementTypeEncoder.cs:47
System.Reflection.Metadata.Ecma335.CustomAttributeElementTypeEncoder.Single
void Single()
Definition
CustomAttributeElementTypeEncoder.cs:67
System.Reflection.Metadata.Ecma335.CustomAttributeElementTypeEncoder.Boolean
void Boolean()
Definition
CustomAttributeElementTypeEncoder.cs:17
System.Reflection.Metadata.Ecma335.CustomAttributeElementTypeEncoder.Char
void Char()
Definition
CustomAttributeElementTypeEncoder.cs:22
System.Reflection.Metadata.Ecma335.CustomAttributeElementTypeEncoder.WriteTypeCode
void WriteTypeCode(SerializationTypeCode value)
Definition
CustomAttributeElementTypeEncoder.cs:12
System.Reflection.Metadata.Ecma335.CustomAttributeElementTypeEncoder.Enum
void Enum(string enumTypeName)
Definition
CustomAttributeElementTypeEncoder.cs:99
System.Reflection.Metadata.Ecma335.CustomAttributeElementTypeEncoder.SystemType
void SystemType()
Definition
CustomAttributeElementTypeEncoder.cs:94
System.Reflection.Metadata.Ecma335.CustomAttributeElementTypeEncoder.SByte
void SByte()
Definition
CustomAttributeElementTypeEncoder.cs:27
System.Reflection.Metadata.Ecma335.CustomAttributeElementTypeEncoder
Definition
CustomAttributeElementTypeEncoder.cs:4
source
System.Reflection.Metadata
System.Reflection.Metadata.Ecma335
CustomAttributeElementTypeEncoder.cs
Generated by
1.10.0