Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ScalarEncoder.cs
Go to the documentation of this file.
2
3public readonly struct ScalarEncoder
4{
5 public BlobBuilder Builder { get; }
6
7 public ScalarEncoder(BlobBuilder builder)
8 {
9 Builder = builder;
10 }
11
12 public void NullArray()
13 {
15 }
16
17 public void Constant(object? value)
18 {
19 string text = value as string;
20 if (text != null || value == null)
21 {
22 String(text);
23 }
24 else
25 {
27 }
28 }
29
30 public void SystemType(string? serializedTypeName)
31 {
32 if (serializedTypeName != null && serializedTypeName.Length == 0)
33 {
34 Throw.ArgumentEmptyString("serializedTypeName");
35 }
36 String(serializedTypeName);
37 }
38
39 private void String(string value)
40 {
42 }
43}
void WriteSerializedString(string? value)
static void ArgumentEmptyString(string parameterName)
Definition Throw.cs:117
void SystemType(string? serializedTypeName)