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