public bool HasCompletePacket()
        {
            if (m_bytesInBuffer < 4)
            {
                return(false);
            }

            m_packetLength ??= SessionPacket.GetSessionPacketLength(m_buffer, m_readOffset);
            return(m_bytesInBuffer >= m_packetLength.Value);
        }
Esempio n. 2
0
 public bool HasCompletePacket()
 {
     if (m_bytesInBuffer >= 4)
     {
         if (!m_packetLength.HasValue)
         {
             m_packetLength = SessionPacket.GetSessionPacketLength(m_buffer, m_readOffset);
         }
         return(m_bytesInBuffer >= m_packetLength.Value);
     }
     return(false);
 }