ArraySegmentEx.cs 770 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace SuperSocket.Common
  6. {
  7. class ArraySegmentEx<T>
  8. {
  9. public ArraySegmentEx(T[] array, int offset, int count)
  10. {
  11. Array = array;
  12. Offset = offset;
  13. Count = count;
  14. }
  15. /// <summary>
  16. /// Gets the array.
  17. /// </summary>
  18. public T[] Array { get; private set; }
  19. /// <summary>
  20. /// Gets the count.
  21. /// </summary>
  22. public int Count { get; private set; }
  23. /// <summary>
  24. /// Gets the offset.
  25. /// </summary>
  26. public int Offset { get; private set; }
  27. public int From { get; set; }
  28. public int To { get; set; }
  29. }
  30. }