AcTools.LapTimes.LevelDbUtils.LevelDbInterop.leveldb_repair_db C# (CSharp) Method

leveldb_repair_db() private method

private leveldb_repair_db ( IntPtr options, string name, IntPtr &error ) : void
options System.IntPtr
name string
error System.IntPtr
return void
        public static extern void leveldb_repair_db(IntPtr /* Options*/ options, string name, out IntPtr error);

Usage Example

Example #1
0
        /// <summary>
        /// If a DB cannot be opened, you may attempt to call this method to
        /// resurrect as much of the contents of the database as possible.
        /// Some data may be lost, so be careful when calling this function
        /// on a database that contains important information.
        /// </summary>
        public static void Repair(Options options, string name)
        {
            IntPtr error;

            LevelDbInterop.leveldb_repair_db(options.Handle, name, out error);
            Throw(error);
        }