/// <summary>Pop an incomplete item from the pipe.</summary> /// <returns>Returns the element revoked if such item exists, <c>null</c> otherwise.</returns> public T Unwrite() { if (m_flushToIndex == m_queue.BackPos) { return(null); } return(m_queue.Unpush()); }
/// <summary>Pop an incomplete item from the pipe.</summary> /// <returns>Returns the element revoked if such item exists, <c>null</c> otherwise.</returns> public bool Unwrite(ref T value) { if (m_flushToIndex == m_queue.BackPos) { return(false); } value = m_queue.Unpush(); return(true); }