private static void *_CopyValue(DeviceTypes.ATAssociatedModePortDataUnsafe._Internal native)
        {
            var ret = Marshal.AllocHGlobal(sizeof(DeviceTypes.ATAssociatedModePortDataUnsafe._Internal));

            *(DeviceTypes.ATAssociatedModePortDataUnsafe._Internal *)ret = native;
            return(ret.ToPointer());
        }
 private ATAssociatedModePortDataUnsafe(DeviceTypes.ATAssociatedModePortDataUnsafe._Internal native, bool skipVTables = false)
     : this(_CopyValue(native), skipVTables)
 {
     _ownsNativeInstance           = true;
     NativeToManagedMap[_Instance] = this;
 }
 internal static DeviceTypes.ATAssociatedModePortDataUnsafe _CreateInstance(DeviceTypes.ATAssociatedModePortDataUnsafe._Internal native, bool skipVTables = false)
 {
     return(new DeviceTypes.ATAssociatedModePortDataUnsafe(native, skipVTables));
 }