1using System.Diagnostics;
8 [DebuggerDisplay(
"Count = {Count}, Start = {Start}, Pos = {Pos}, Size = {Size}")]
9 [DebuggerTypeProxy(typeof(ChunkNodeDebugView<>))]
41 public int Size => this.chunk.Size;
46 public int Start => this.chunk.Start;
51 public int Pos => this.chunk.Pos;
56 public int Count => this.chunk.Pos - this.chunk.Start;
64 return this.chunk.ToString();
73 public T
this[
int Index]
75 get => this.chunk[Index];
76 set => this.chunk[Index] = value;
Node referencing a chunk in a ChunkedList<T>
override string ToString()
String representation of chunk.
ChunkNode< T > Next
Next chunk
int Pos
Index after the last element in chunk.
int Count
Number of elements in chunk.
T[] Elements
Array of elements in chunk.
ChunkNode< T > Prev
Previous chunk
int Start
Index of first element in chunk.
A chunked list is a linked list of chunks of objects of type T .