public YHElement Dequeue() { YHElement e = new YHElement(null, 0); if (m_data_queue.Count != 0) { return(m_data_queue.Dequeue()); } return(e); }
public void Enqueue(byte[] data, int len) { YHElement e = new YHElement(data, len); if (m_data_queue.Count == m_blocks) { m_data_queue.Dequeue(); } m_data_queue.Enqueue(e); }