Exemplo n.º 1
0
        void test_queue()
        {
            //test queue
            myQueue <int> q = new myQueue <int>();

            q.push(1);
            int tmp = q.pop();

            q.push(2);
            q.push(3);
            tmp = q.pop();
            tmp = q.pop();
            return;
        }
Exemplo n.º 2
0
        public byte[] getBlock(out int nRead)
        {
            Debug.Assert(m_curBlock < m_nBlock);
            var b = m_block.pop();

            m_curBlock++;
            nRead = b.m_count;
            return(b.m_data);
        }