private static void *_CopyValue(DeviceDefaults.ATDeviceDefaults._Internal native) { var ret = Marshal.AllocHGlobal(sizeof(DeviceDefaults.ATDeviceDefaults._Internal)); *(DeviceDefaults.ATDeviceDefaults._Internal *)ret = native; return(ret.ToPointer()); }
private ATDeviceDefaults(DeviceDefaults.ATDeviceDefaults._Internal native, bool skipVTables = false) : this(_CopyValue(native), skipVTables) { _ownsNativeInstance = true; NativeToManagedMap[_Instance] = this; }
internal static DeviceDefaults.ATDeviceDefaults _CreateInstance(DeviceDefaults.ATDeviceDefaults._Internal native, bool skipVTables = false) { return(new DeviceDefaults.ATDeviceDefaults(native, skipVTables)); }