Ejemplo n.º 1
0
        public ChromiumDbWrapper(string directory)
        {
            _comparator = Comparator.Create("idb_cmp1",
                                            (xs, ys) => Compare(new StringPiece(xs), new StringPiece(ys), false));

            _options = new Options {
                Comparator = _comparator
            };

            _levelDb = new LevelDbUtils.LevelDb(_options, directory);
        }
Ejemplo n.º 2
0
 internal SnapShot(IntPtr handle, LevelDb parent)
 {
     Handle = handle;
     Parent = new WeakReference <LevelDb>(parent);
 }