1 write to DefaultBufferSize
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Protocol\JsonHubProtocol.cs (1)
936DefaultBufferSize = 16 * 1024,
14 references to DefaultBufferSize
System.Text.Json (14)
src\libraries\System.Text.Json\Common\JsonSourceGenerationOptionsAttribute.cs (1)
59/// Specifies the default value of <see cref="JsonSerializerOptions.DefaultBufferSize"/> when set.
System\Text\Json\Nodes\JsonNode.To.cs (1)
22defaultBufferSize = options.DefaultBufferSize;
System\Text\Json\Serialization\JsonSerializer.Read.Node.cs (2)
159using var output = new PooledByteBufferWriter(options.DefaultBufferSize); 180using var output = new PooledByteBufferWriter(options.DefaultBufferSize);
System\Text\Json\Serialization\JsonSerializer.Read.Stream.cs (1)
556ReadBufferState bufferState = new(listTypeInfo.Options.DefaultBufferSize);
System\Text\Json\Serialization\JsonSerializer.Write.Document.cs (2)
138PooledByteBufferWriter output = new(options.DefaultBufferSize); 159PooledByteBufferWriter output = new(options.DefaultBufferSize);
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.ReadHelper.cs (2)
29var bufferState = new ReadBufferState(options.DefaultBufferSize); 61var bufferState = new ReadBufferState(options.DefaultBufferSize);
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.WriteHelpers.cs (4)
69int flushThreshold = (int)(Options.DefaultBufferSize * JsonSerializer.FlushThreshold); 70return SerializeAsync(new PooledByteBufferWriter(Options.DefaultBufferSize, utf8Json), rootValue, flushThreshold, cancellationToken, rootValueBoxed); 301using var bufferWriter = new PooledByteBufferWriter(Options.DefaultBufferSize); 366if ((ulong)serializationSize > (ulong)(Options.DefaultBufferSize / 2))
System\Text\Json\Writer\Utf8JsonWriterCache.cs (1)
18RentWriterAndBuffer(options.GetWriterOptions(), options.DefaultBufferSize, out bufferWriter);