public void Set(InitializeThreadAffinity other) { if (other != null) { m_ApiVersion = PlatformInterface.InitializeThreadaffinityApiLatest; NetworkWork = other.NetworkWork; StorageIo = other.StorageIo; WebSocketIo = other.WebSocketIo; P2PIo = other.P2PIo; HttpRequestIo = other.HttpRequestIo; } }
public void Set(AndroidInitializeOptions other) { if (other != null) { m_ApiVersion = PlatformInterface.InitializeApiLatest; AllocateMemoryFunction = other.AllocateMemoryFunction; ReallocateMemoryFunction = other.ReallocateMemoryFunction; ReleaseMemoryFunction = other.ReleaseMemoryFunction; ProductName = other.ProductName; ProductVersion = other.ProductVersion; Reserved = other.Reserved; SystemInitializeOptions = other.SystemInitializeOptions; OverrideThreadAffinity = other.OverrideThreadAffinity; } }
public void Set(InitializeOptions other) { if (other != null) { m_ApiVersion = PlatformInterface.InitializeApiLatest; m_AllocateMemoryFunction = other.AllocateMemoryFunction != null ? AllocateMemoryFunction : null; m_ReallocateMemoryFunction = other.ReallocateMemoryFunction != null ? ReallocateMemoryFunction : null; m_ReleaseMemoryFunction = other.ReleaseMemoryFunction != null ? ReleaseMemoryFunction : null; ProductName = other.ProductName; ProductVersion = other.ProductVersion; int[] reservedData = new int[] { 1, 1 }; System.IntPtr reservedDataAddress = System.IntPtr.Zero; Helper.TryMarshalSet(ref reservedDataAddress, reservedData); m_Reserved = reservedDataAddress; SystemInitializeOptions = other.SystemInitializeOptions; OverrideThreadAffinity = other.OverrideThreadAffinity; } }