1 write to DefaultBufferSize
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Protocol\JsonHubProtocol.cs (1)
936
DefaultBufferSize
= 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)
22
defaultBufferSize = options.
DefaultBufferSize
;
System\Text\Json\Serialization\JsonSerializer.Read.Node.cs (2)
159
using var output = new PooledByteBufferWriter(options.
DefaultBufferSize
);
180
using var output = new PooledByteBufferWriter(options.
DefaultBufferSize
);
System\Text\Json\Serialization\JsonSerializer.Read.Stream.cs (1)
556
ReadBufferState bufferState = new(listTypeInfo.Options.
DefaultBufferSize
);
System\Text\Json\Serialization\JsonSerializer.Write.Document.cs (2)
138
PooledByteBufferWriter output = new(options.
DefaultBufferSize
);
159
PooledByteBufferWriter output = new(options.
DefaultBufferSize
);
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.ReadHelper.cs (2)
29
var bufferState = new ReadBufferState(options.
DefaultBufferSize
);
61
var bufferState = new ReadBufferState(options.
DefaultBufferSize
);
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.WriteHelpers.cs (4)
69
int flushThreshold = (int)(Options.
DefaultBufferSize
* JsonSerializer.FlushThreshold);
70
return SerializeAsync(new PooledByteBufferWriter(Options.
DefaultBufferSize
, utf8Json), rootValue, flushThreshold, cancellationToken, rootValueBoxed);
301
using var bufferWriter = new PooledByteBufferWriter(Options.
DefaultBufferSize
);
366
if ((ulong)serializationSize > (ulong)(Options.
DefaultBufferSize
/ 2))
System\Text\Json\Writer\Utf8JsonWriterCache.cs (1)
18
RentWriterAndBuffer(options.GetWriterOptions(), options.
DefaultBufferSize
, out bufferWriter);