Example #1
0
        /// <summary>
        /// An iterator is either positioned at a key/value pair, or
        /// not valid.
        /// </summary>
        /// <returns>This method returns true iff the iterator is valid.</returns>
        public bool Valid()
        {
            var result = LevelDBInterop.leveldb_iter_valid(Handle) != 0;

            GC.KeepAlive(this);
            return(result);
        }
Example #2
0
        /// <summary>
        /// An iterator is either positioned at a key/value pair, or
        /// not valid.
        /// </summary>
        /// <returns>This method returns true iff the iterator is valid.</returns>
        public Boolean Valid()
        {
            Boolean result = LevelDBInterop.leveldb_iter_valid(this.Handle) != 0;

            GC.KeepAlive(this);
            return(result);
        }
Example #3
0
 /// <summary>
 /// An iterator is either positioned at a key/value pair, or
 /// not valid.
 /// </summary>
 /// <returns>This method returns true iff the iterator is valid.</returns>
 public bool IsValid()
 {
     return((int)LevelDBInterop.leveldb_iter_valid(this.Handle) != 0);
 }