コード例 #1
0
ファイル: YPipe.cs プロジェクト: SPERONIS/Communication_Mono
 /// <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());
 }
コード例 #2
0
        /// <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);
        }