NSRange.cs 464 B

12345678910111213141516171819202122
  1. using System;
  2. namespace Veldrid.MetalBindings
  3. {
  4. public struct NSRange
  5. {
  6. public UIntPtr location;
  7. public UIntPtr length;
  8. public NSRange(UIntPtr location, UIntPtr length)
  9. {
  10. this.location = location;
  11. this.length = length;
  12. }
  13. public NSRange(uint location, uint length)
  14. {
  15. this.location = (UIntPtr)location;
  16. this.length = (UIntPtr)length;
  17. }
  18. }
  19. }