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