0
0
Fork 0
This repository has been archived on 2024-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
ryujinx-final/Ryujinx.HLE/HOS/Services/Nifm/StaticService/Types/IpV4Address.cs

25 lines
522 B
C#
Raw Normal View History

using System;
using System.Net;
using System.Runtime.InteropServices;
namespace Ryujinx.HLE.HOS.Services.Nifm.StaticService.Types
{
[StructLayout(LayoutKind.Sequential)]
struct IpV4Address
{
public uint Address;
public IpV4Address(IPAddress address)
{
if (address == null)
{
Address = 0;
}
else
{
Address = BitConverter.ToUInt32(address.GetAddressBytes());
}
}
}
}