Ejemplo n.º 1
0
        /// <summary>
        /// Return an iterator over the contents of the database.
        /// The result of CreateIterator is initially invalid (caller must
        /// call one of the Seek methods on the iterator before using it).
        /// </summary>
        public Iterator CreateIterator(ReadOptions options)
        {
            var result = new Iterator(LevelDBInterop.leveldb_create_iterator(this.Handle, options.Handle));

            GC.KeepAlive(options);
            GC.KeepAlive(this);
            return(result);
        }
Ejemplo n.º 2
0
Archivo: DB.cs Proyecto: bkwcl/LevelDB
 /// <summary>
 /// Return an iterator over the contents of the database.
 /// The result of CreateIterator is initially invalid (caller must
 /// call one of the Seek methods on the iterator before using it).
 /// </summary>
 public Iterator CreateIterator(ReadOptions options)
 {
     return(new Iterator(LevelDBInterop.leveldb_create_iterator(this.Handle, options.Handle)));
 }