Exemple #1
0
        /// <summary>
        /// Return the value for the current entry.
        /// REQUIRES: Valid()
        /// </summary>
        public byte[] Value()
        {
            int length;
            var value = LevelDBInterop.leveldb_iter_value(this.Handle, out length);

            Throw();

            var bytes = new byte[length];

            Marshal.Copy(value, bytes, 0, length);
            return(bytes);
        }