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