Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ WriteStart()

void System.Text.Json.Utf8JsonWriter.WriteStart ( byte token)
inlineprivate

Definition at line 218 of file Utf8JsonWriter.cs.

219 {
220 if (CurrentDepth >= 1000)
221 {
222 ThrowHelper.ThrowInvalidOperationException(ExceptionResource.DepthTooLarge, _currentDepth, 0, JsonTokenType.None);
223 }
225 {
226 WriteStartSlow(token);
227 }
228 else
229 {
230 WriteStartMinimized(token);
231 }
232 _currentDepth &= int.MaxValue;
234 }

References System.Text.Json.Utf8JsonWriter._currentDepth, System.Text.Json.Utf8JsonWriter._options, System.Text.Json.Utf8JsonWriter.CurrentDepth, System.Text.Json.JsonWriterOptions.IndentedOrNotSkipValidation, System.Text.Json.ThrowHelper.ThrowInvalidOperationException(), System.Text.Json.Utf8JsonWriter.WriteStartMinimized(), and System.Text.Json.Utf8JsonWriter.WriteStartSlow().

Referenced by System.Text.Json.Utf8JsonWriter.WriteStartArray(), and System.Text.Json.Utf8JsonWriter.WriteStartObject().