32 references to Utf8JsonWriterCache
System.Text.Json (32)
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)
137
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriterAndBuffer(
152
Utf8JsonWriterCache
.ReturnWriterAndBuffer(writer, output);
System\Text\Json\Nodes\JsonValueOfTCustomized.cs (2)
52
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriterAndBuffer(options: default, JsonSerializerOptions.BufferSizeDefault, out PooledByteBufferWriter output);
64
Utf8JsonWriterCache
.ReturnWriterAndBuffer(writer, output);
System\Text\Json\Serialization\JsonSerializer.Write.ByteArray.cs (4)
142
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriterAndBuffer(jsonTypeInfo.Options, out PooledByteBufferWriter output);
151
Utf8JsonWriterCache
.ReturnWriterAndBuffer(writer, output);
159
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriterAndBuffer(jsonTypeInfo.Options, out PooledByteBufferWriter output);
168
Utf8JsonWriterCache
.ReturnWriterAndBuffer(writer, output);
System\Text\Json\Serialization\JsonSerializer.Write.Document.cs (4)
139
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriter(options, output);
148
Utf8JsonWriterCache
.ReturnWriter(writer);
160
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriter(options, output);
169
Utf8JsonWriterCache
.ReturnWriter(writer);
System\Text\Json\Serialization\JsonSerializer.Write.Element.cs (4)
137
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriterAndBuffer(jsonTypeInfo.Options, out PooledByteBufferWriter output);
146
Utf8JsonWriterCache
.ReturnWriterAndBuffer(writer, output);
155
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriterAndBuffer(jsonTypeInfo.Options, out PooledByteBufferWriter output);
164
Utf8JsonWriterCache
.ReturnWriterAndBuffer(writer, output);
System\Text\Json\Serialization\JsonSerializer.Write.Node.cs (4)
138
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriterAndBuffer(jsonTypeInfo.Options, out PooledByteBufferWriter output);
147
Utf8JsonWriterCache
.ReturnWriterAndBuffer(writer, output);
156
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriterAndBuffer(jsonTypeInfo.Options, out PooledByteBufferWriter output);
165
Utf8JsonWriterCache
.ReturnWriterAndBuffer(writer, output);
System\Text\Json\Serialization\JsonSerializer.Write.String.cs (4)
159
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriterAndBuffer(jsonTypeInfo.Options, out PooledByteBufferWriter output);
168
Utf8JsonWriterCache
.ReturnWriterAndBuffer(writer, output);
176
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriterAndBuffer(jsonTypeInfo.Options, out PooledByteBufferWriter output);
185
Utf8JsonWriterCache
.ReturnWriterAndBuffer(writer, output);
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.WriteHelpers.cs (4)
102
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriter(Options, pipeWriter);
117
Utf8JsonWriterCache
.ReturnWriter(writer);
265
Utf8JsonWriter writer =
Utf8JsonWriterCache
.RentWriterAndBuffer(Options, out PooledByteBufferWriter bufferWriter);
278
Utf8JsonWriterCache
.ReturnWriterAndBuffer(writer, bufferWriter);