leveldb_iter_get_error() private method

private leveldb_iter_get_error ( IntPtr iterator, IntPtr &error ) : void
iterator System.IntPtr
error System.IntPtr
return void
示例#1
0
        /// <summary>
        /// If an error has occurred, throw it.
        /// </summary>
        void Throw(Func <string, Exception> exception)
        {
            IntPtr error;

            LevelDbInterop.leveldb_iter_get_error(Handle, out error);
            if (error != IntPtr.Zero)
            {
                throw exception(Marshal.PtrToStringAnsi(error));
            }
        }