2 writes to FlushThreshold
System.Text.Json (2)
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.WriteHelpers.cs (2)
165state.FlushThreshold = flushThreshold; 307state.FlushThreshold = (int)(bufferWriter.Capacity * JsonSerializer.FlushThreshold);
3 references to FlushThreshold
System.Text.Json (3)
System\Text\Json\Serialization\JsonConverter.cs (3)
191Debug.Assert(state.FlushThreshold == 0 || (state.PipeWriter is { CanGetUnflushedBytes: true }), 196return state.FlushThreshold > 0 && pipeWriter.UnflushedBytes > state.FlushThreshold - writer.BytesPending;