aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Horizon/Sdk/Account/NetworkServiceAccountId.cs
blob: 2512975e32b28d0f8d50ba3e1293d6f03062b6bf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System.Runtime.InteropServices;

namespace Ryujinx.Horizon.Sdk.Account
{
    [StructLayout(LayoutKind.Sequential, Size = 0x8, Pack = 0x8)]
    readonly record struct NetworkServiceAccountId
    {
        public readonly ulong Id;

        public NetworkServiceAccountId(ulong id)
        {
            Id = id;
        }

        public override readonly string ToString()
        {
            return Id.ToString("x16");
        }
    }
}