Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CustomAttributeElementTypeEncoder.cs
Go to the documentation of this file.
2
4{
5 public BlobBuilder Builder { get; }
6
8 {
9 Builder = builder;
10 }
11
13 {
14 Builder.WriteByte((byte)value);
15 }
16
17 public void Boolean()
18 {
20 }
21
22 public void Char()
23 {
25 }
26
27 public void SByte()
28 {
30 }
31
32 public void Byte()
33 {
35 }
36
37 public void Int16()
38 {
40 }
41
42 public void UInt16()
43 {
45 }
46
47 public void Int32()
48 {
50 }
51
52 public void UInt32()
53 {
55 }
56
57 public void Int64()
58 {
60 }
61
62 public void UInt64()
63 {
65 }
66
67 public void Single()
68 {
70 }
71
72 public void Double()
73 {
75 }
76
77 public void String()
78 {
80 }
81
83 {
84 if (type - 2 <= PrimitiveSerializationTypeCode.Single)
85 {
87 }
88 else
89 {
91 }
92 }
93
94 public void SystemType()
95 {
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 }
110 Builder.WriteSerializedString(enumTypeName);
111 }
112}
void WriteSerializedString(string? value)
static void ArgumentNull(string parameterName)
Definition Throw.cs:110
static void ArgumentEmptyString(string parameterName)
Definition Throw.cs:117
static void ArgumentOutOfRange(string parameterName)
Definition Throw.cs:145