public ReadOnlyBufferReader(ReadOnlyBuffer buffer) { _end = false; _index = 0; _consumedBytes = 0; _enumerator = buffer.GetEnumerator(); _currentSpan = default; MoveNext(); }
public void MemoryEnumerator() { for (int i = 0; i < InnerLoopCount; i++) { var enumerator = _readOnlyBuffer.GetEnumerator(); while (enumerator.MoveNext()) { var memory = enumerator.Current; } } }