コード例 #1
0
ファイル: Iterator.cs プロジェクト: robpaveza/mc-mapper
        /// <summary>
        /// If an error has occurred, throw it.
        /// </summary>
        void Throw(Func <string, Exception> exception)
        {
            IntPtr error;

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