public void Push(LinePointer item) { Increment(); data[pointer] = item; if (count <= data.GetUpperBound(0)) { count++; } }
public bool Enqueue(LinePointer item) { head = (head + 1) % Capacity; backing[head] = item; if (Count == Capacity) { tail = (tail + 1) % Capacity; return(false); } Count++; return(true); }