Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
JsonWriterOptions.cs
Go to the documentation of this file.
2
3namespace System.Text.Json;
4
5public struct JsonWriterOptions
6{
7 private int _optionsMask;
8
9 public JavaScriptEncoder? Encoder { get; set; }
10
11 public bool Indented
12 {
13 get
14 {
15 return (_optionsMask & 1) != 0;
16 }
17 set
18 {
19 if (value)
20 {
21 _optionsMask |= 1;
22 }
23 else
24 {
25 _optionsMask &= -2;
26 }
27 }
28 }
29
30 public bool SkipValidation
31 {
32 get
33 {
34 return (_optionsMask & 2) != 0;
35 }
36 set
37 {
38 if (value)
39 {
40 _optionsMask |= 2;
41 }
42 else
43 {
44 _optionsMask &= -3;
45 }
46 }
47 }
48
50}