Пример #1
0
        private static void *__CopyValue(global::Leveldb.Filelock.__Internal native)
        {
            var ret = Marshal.AllocHGlobal(sizeof(global::Leveldb.Filelock.__Internal));

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