public LazyBufferOptions(FastStreamNonStopWriteMode overflowBehavior = FastStreamNonStopWriteMode.DiscardWritingData, int bufferSize = 0) { if (bufferSize <= 0) { bufferSize = CoresConfig.LazyWriteBufferSettings.DefaultBufferSize; } this.OverflowBehavior = overflowBehavior; this.BufferSize = bufferSize; }
public PCapBuffer(PCapFileEmitter?initialEmitter = null, int bufferSize = DefaultSize, FastStreamNonStopWriteMode discardMode = FastStreamNonStopWriteMode.DiscardExistingData, CancellationToken cancel = default) : base(initialEmitter, new LazyBufferOptions(discardMode, bufferSize._DefaultSize(CoresConfig.PCapSettings.DefaultBufferSize)), cancel) { }