コード例 #1
0
    public LazyBufferOptions(FastStreamNonStopWriteMode overflowBehavior = FastStreamNonStopWriteMode.DiscardWritingData, int bufferSize = 0)
    {
        if (bufferSize <= 0)
        {
            bufferSize = CoresConfig.LazyWriteBufferSettings.DefaultBufferSize;
        }

        this.OverflowBehavior = overflowBehavior;
        this.BufferSize       = bufferSize;
    }
コード例 #2
0
 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)
 {
 }