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

namespace Ryujinx.Core.OsHle.Ipc
{
    struct IpcRecvListBuffDesc
    {
        public long  Position { get; private set; }
        public short Size     { get; private set; }

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

            Position = Value & 0xffffffffffff;

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