34 references to Utf8JsonWriterCache
System.Text.Json (34)
System\Text\Json\Nodes\JsonNode.To.cs (4)
25
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriterAndBuffer(writerOptions, defaultBufferSize, out PooledByteBufferWriter output);
34
Utf8JsonWriterCache
.ReturnWriterAndBuffer(writer, output);
58
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriterAndBuffer(new JsonWriterOptions { Indented = true }, JsonSerializerOptions.BufferSizeDefault, out PooledByteBufferWriter output);
67
Utf8JsonWriterCache
.ReturnWriterAndBuffer(writer, output);
System\Text\Json\Nodes\JsonValue.cs (2)
134
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriterAndBuffer(
149
Utf8JsonWriterCache
.ReturnWriterAndBuffer(writer, output);
System\Text\Json\Nodes\JsonValueOfTCustomized.cs (2)
49
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriterAndBuffer(options: default, JsonSerializerOptions.BufferSizeDefault, out PooledByteBufferWriter output);
61
Utf8JsonWriterCache
.ReturnWriterAndBuffer(writer, output);
System\Text\Json\Serialization\JsonSerializer.Write.ByteArray.cs (4)
133
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriterAndBuffer(jsonTypeInfo.Options, out PooledByteBufferWriter output);
142
Utf8JsonWriterCache
.ReturnWriterAndBuffer(writer, output);
150
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriterAndBuffer(jsonTypeInfo.Options, out PooledByteBufferWriter output);
159
Utf8JsonWriterCache
.ReturnWriterAndBuffer(writer, output);
System\Text\Json\Serialization\JsonSerializer.Write.Document.cs (4)
130
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriter(options, output);
139
Utf8JsonWriterCache
.ReturnWriter(writer);
151
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriter(options, output);
160
Utf8JsonWriterCache
.ReturnWriter(writer);
System\Text\Json\Serialization\JsonSerializer.Write.Element.cs (4)
128
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriterAndBuffer(jsonTypeInfo.Options, out PooledByteBufferWriter output);
137
Utf8JsonWriterCache
.ReturnWriterAndBuffer(writer, output);
146
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriterAndBuffer(jsonTypeInfo.Options, out PooledByteBufferWriter output);
155
Utf8JsonWriterCache
.ReturnWriterAndBuffer(writer, output);
System\Text\Json\Serialization\JsonSerializer.Write.Node.cs (4)
129
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriterAndBuffer(jsonTypeInfo.Options, out PooledByteBufferWriter output);
138
Utf8JsonWriterCache
.ReturnWriterAndBuffer(writer, output);
147
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriterAndBuffer(jsonTypeInfo.Options, out PooledByteBufferWriter output);
156
Utf8JsonWriterCache
.ReturnWriterAndBuffer(writer, output);
System\Text\Json\Serialization\JsonSerializer.Write.String.cs (4)
150
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriterAndBuffer(jsonTypeInfo.Options, out PooledByteBufferWriter output);
159
Utf8JsonWriterCache
.ReturnWriterAndBuffer(writer, output);
167
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriterAndBuffer(jsonTypeInfo.Options, out PooledByteBufferWriter output);
176
Utf8JsonWriterCache
.ReturnWriterAndBuffer(writer, output);
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.WriteHelpers.cs (6)
102
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriter(Options, pipeWriter);
117
Utf8JsonWriterCache
.ReturnWriter(writer);
268
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriterAndBuffer(Options, out PooledByteBufferWriter bufferWriter);
281
Utf8JsonWriterCache
.ReturnWriterAndBuffer(writer, bufferWriter);
304
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriterAndBuffer(Options, out PooledByteBufferWriter bufferWriter);
334
Utf8JsonWriterCache
.ReturnWriterAndBuffer(writer, bufferWriter);