Пример #1
0
 private static void* __CopyValue(__long.Internal native)
 {
     var ret = Marshal.AllocHGlobal(12);
     *(__long.Internal*) ret = native;
     return ret.ToPointer();
 }
Пример #2
0
 private __long(__long.Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance = true;
     NativeToManagedMap[__Instance] = this;
 }
Пример #3
0
 public static __long __CreateInstance(__long.Internal native, bool skipVTables = false)
 {
     return new __long(native, skipVTables);
 }