AcTools.LapTimes.LevelDbUtils.LevelDbInterop.leveldb_open C# (CSharp) Метод

leveldb_open() приватный Метод

private leveldb_open ( IntPtr options, string name, IntPtr &error ) : IntPtr
options System.IntPtr
name string
error System.IntPtr
Результат System.IntPtr
        public static extern IntPtr leveldb_open(IntPtr /* Options*/ options, string name, out IntPtr error);

Usage Example

Пример #1
0
        /// <summary>
        /// Open the database with the specified "name".
        /// </summary>
        public LevelDb(Options options, string name)
        {
            IntPtr error;

            _cache      = options.Cache;
            _comparator = options.Comparator;
            Handle      = LevelDbInterop.leveldb_open(options.Handle, name, out error);
            Throw(error, msg => new UnauthorizedAccessException(msg));
        }