34 references to Utf8JsonWriterCache
System.Text.Json (34)
System\Text\Json\Nodes\JsonNode.To.cs (4)
25Utf8JsonWriter writer = Utf8JsonWriterCache.RentWriterAndBuffer(writerOptions, defaultBufferSize, out PooledByteBufferWriter output); 34Utf8JsonWriterCache.ReturnWriterAndBuffer(writer, output); 58Utf8JsonWriter writer = Utf8JsonWriterCache.RentWriterAndBuffer(new JsonWriterOptions { Indented = true }, JsonSerializerOptions.BufferSizeDefault, out PooledByteBufferWriter output); 67Utf8JsonWriterCache.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)
102Utf8JsonWriter writer = Utf8JsonWriterCache.RentWriter(Options, pipeWriter); 117Utf8JsonWriterCache.ReturnWriter(writer); 268Utf8JsonWriter writer = Utf8JsonWriterCache.RentWriterAndBuffer(Options, out PooledByteBufferWriter bufferWriter); 281Utf8JsonWriterCache.ReturnWriterAndBuffer(writer, bufferWriter); 304Utf8JsonWriter writer = Utf8JsonWriterCache.RentWriterAndBuffer(Options, out PooledByteBufferWriter bufferWriter); 334Utf8JsonWriterCache.ReturnWriterAndBuffer(writer, bufferWriter);