SpecialHeader.cs 604 B

123456789101112131415161718192021222324252627
  1. using Ryujinx.Common.Utilities;
  2. namespace Ryujinx.Horizon.Sdk.Sf.Hipc
  3. {
  4. struct SpecialHeader
  5. {
  6. private uint _word;
  7. public bool SendPid
  8. {
  9. get => _word.Extract(0);
  10. set => _word = _word.Insert(0, value);
  11. }
  12. public int CopyHandlesCount
  13. {
  14. get => (int)_word.Extract(1, 4);
  15. set => _word = _word.Insert(1, 4, (uint)value);
  16. }
  17. public int MoveHandlesCount
  18. {
  19. get => (int)_word.Extract(5, 4);
  20. set => _word = _word.Insert(5, 4, (uint)value);
  21. }
  22. }
  23. }