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