Exemplo n.º 1
0
    /// <summary>
    ///
    /// </summary>
    public void Release()
    {
        if (m_Buffer == null)
        {
            return;
        }

        // 把数据返回进内存池
        SendQueue.ReleaseBuffer(m_Buffer);

        m_Buffer = null;
        m_Length = 0;
    }
Exemplo n.º 2
0
 public void ReleaseBufferTest()
 {
     byte[] byteBuffer = null; // TODO: 初始化为适当的值
     SendQueue.ReleaseBuffer(byteBuffer);
     Assert.Inconclusive("无法验证不返回值的方法。");
 }