diff --git a/src/bctklib/bctklib.csproj b/src/bctklib/bctklib.csproj index 11495a8..69f0247 100644 --- a/src/bctklib/bctklib.csproj +++ b/src/bctklib/bctklib.csproj @@ -1,6 +1,5 @@ - true neo-bctklib The Neo Project The Neo Project diff --git a/src/bctklib/persistence/Extensions.cs b/src/bctklib/persistence/Extensions.cs index ea1ad7e..c930778 100644 --- a/src/bctklib/persistence/Extensions.cs +++ b/src/bctklib/persistence/Extensions.cs @@ -29,12 +29,12 @@ public static ColumnFamilyHandle GetOrCreateColumnFamily(this RocksDb db, string if (direction == SeekDirection.Forward) { - Seek(iterator, prefix); + iterator.Seek(prefix); return SeekInternal(iterator, iterator.Next); } else { - SeekForPrev(iterator, prefix); + iterator.SeekForPrev(prefix); return SeekInternal(iterator, iterator.Prev); } @@ -49,22 +49,6 @@ public static ColumnFamilyHandle GetOrCreateColumnFamily(this RocksDb db, string } } } - - unsafe static Iterator Seek(Iterator @this, ReadOnlySpan prefix) - { - fixed (byte* prefixPtr = prefix) - { - return @this.Seek(prefixPtr, (ulong)prefix.Length); - } - } - - unsafe static Iterator SeekForPrev(Iterator @this, ReadOnlySpan prefix) - { - fixed (byte* prefixPtr = prefix) - { - return @this.SeekForPrev(prefixPtr, (ulong)prefix.Length); - } - } } public static byte[]? TryGet(this TrackingMap trackingMap, IReadOnlyStore store, byte[]? key)