aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Ipc/IpcRecvListBuffDesc.cs
blob: 1d0a8c8074510ddfc16142c97f35545239c9c0cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System.IO;

namespace Ryujinx.HLE.HOS.Ipc
{
    struct IpcRecvListBuffDesc
    {
        public long Position { get; private set; }
        public long Size     { get; private set; }

        public IpcRecvListBuffDesc(BinaryReader Reader)
        {
            long Value = Reader.ReadInt64();

            Position = Value & 0xffffffffffff;

            Size = (ushort)(Value >> 48);
        }
    }
}