mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-25 16:05:47 +00:00
28 lines
604 B
C#
28 lines
604 B
C#
|
using Ryujinx.Common.Utilities;
|
|||
|
|
|||
|
namespace Ryujinx.Horizon.Sdk.Sf.Hipc
|
|||
|
{
|
|||
|
struct SpecialHeader
|
|||
|
{
|
|||
|
private uint _word;
|
|||
|
|
|||
|
public bool SendPid
|
|||
|
{
|
|||
|
get => _word.Extract(0);
|
|||
|
set => _word = _word.Insert(0, value);
|
|||
|
}
|
|||
|
|
|||
|
public int CopyHandlesCount
|
|||
|
{
|
|||
|
get => (int)_word.Extract(1, 4);
|
|||
|
set => _word = _word.Insert(1, 4, (uint)value);
|
|||
|
}
|
|||
|
|
|||
|
public int MoveHandlesCount
|
|||
|
{
|
|||
|
get => (int)_word.Extract(5, 4);
|
|||
|
set => _word = _word.Insert(5, 4, (uint)value);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|