public void EraseMiddle4Works() { var val = GetSampleValue().ToArray(); var key = new byte[2]; for (var i = 0; i < 2; i++) { key[0] = (byte)i; _cursor.Upsert(key.AsSpan(0, 1), val); } for (var i = 0; i < 4; i++) { key[1] = (byte)i; _cursor.Upsert(key, val); } key[1] = 1; _cursor.FindExact(key); var c2 = _cursor.Clone(); c2.MoveNext(); Assert.Equal(2, _cursor.EraseTo(c2)); Assert.Equal(4, _root.GetCount()); }
public ICursor <DateTime, V> Clone() { return(new ZonedCursor <V>(_cursor.Clone(), _timeZone)); }
public ICursor <TKey2, TValue2> Clone() { return(new ConvertCursor(_innerCursor.Clone(), _source)); }
public ICursor <Variant, Variant> Clone() { return(new VariantCursor(_innerCursor.Clone(), _source)); }
public Cursor <TKey, TValue> Clone() { return(new Cursor <TKey, TValue>(_cursor.Clone())); }