private void ResetState() { _readerCompletion.Reset(); _writerCompletion.Reset(); _commitHeadIndex = 0; _currentWriteLength = 0; _length = 0; }
private void ResetState() { _readerCompletion.Reset(); _writerCompletion.Reset(); _readerAwaitable = new PipeAwaitable(completed: false, _useSynchronizationContext); _writerAwaitable = new PipeAwaitable(completed: true, _useSynchronizationContext); _commitHeadIndex = 0; _currentWriteLength = 0; _length = 0; }
private void ResetState() { _readerCompletion.Reset(); _writerCompletion.Reset(); _readerAwaitable = new PipeAwaitable(completed: false, _useSynchronizationContext); _writerAwaitable = new PipeAwaitable(completed: true, _useSynchronizationContext); _readTailIndex = 0; _readHeadIndex = 0; _lastExaminedIndex = -1; _unflushedBytes = 0; _unconsumedBytes = 0; }