示例#1
0
        private static void *__CopyValue(global::Leveldb.Snapshot.__Internal native)
        {
            var ret = Marshal.AllocHGlobal(sizeof(global::Leveldb.Snapshot.__Internal));

            *(global::Leveldb.Snapshot.__Internal *)ret = native;
            return(ret.ToPointer());
        }
示例#2
0
 private Snapshot(global::Leveldb.Snapshot.__Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance           = true;
     NativeToManagedMap[__Instance] = this;
 }
示例#3
0
 internal static global::Leveldb.Snapshot __CreateInstance(global::Leveldb.Snapshot.__Internal native, bool skipVTables = false)
 {
     return(new global::Leveldb.Snapshot(native, skipVTables));
 }