SoftwareKeyboardDictSet.cs 928 B

12345678910111213141516171819202122232425262728293031323334
  1. using System.Runtime.InteropServices;
  2. namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
  3. {
  4. /// <summary>
  5. /// A structure with custom dictionary words for the software keyboard.
  6. /// </summary>
  7. [StructLayout(LayoutKind.Sequential, Pack = 2)]
  8. struct SoftwareKeyboardDictSet
  9. {
  10. /// <summary>
  11. /// A 0x1000-byte aligned buffer position.
  12. /// </summary>
  13. public ulong BufferPosition;
  14. /// <summary>
  15. /// A 0x1000-byte aligned buffer size.
  16. /// </summary>
  17. public uint BufferSize;
  18. /// <summary>
  19. /// Array of word entries in the buffer.
  20. /// </summary>
  21. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 24)]
  22. public ulong[] Entries;
  23. /// <summary>
  24. /// Number of used entries in the Entries field.
  25. /// </summary>
  26. public ushort TotalEntries;
  27. public ushort Padding1;
  28. }
  29. }