CSharpRTMP.Core.NetIO.TCPCarrier.SetReceiveBuffer C# (CSharp) Method

SetReceiveBuffer() public method

public SetReceiveBuffer ( InputStream ms, SocketAsyncEventArgs socketAsyncEventArgs ) : bool
ms CSharpRTMP.Common.InputStream
socketAsyncEventArgs System.Net.Sockets.SocketAsyncEventArgs
return bool
        public bool SetReceiveBuffer(InputStream ms, SocketAsyncEventArgs socketAsyncEventArgs)
        {
            lock (ms)
            {
                ms.SetLength(ms.Published + 4096);
                socketAsyncEventArgs.SetBuffer(ms.GetBuffer(), (int)ms.Published, 4096);
            }
            return true;
        }
        //public void SetSendBuffer(OutputStream ms, SocketAsyncEventArgs socketAsyncEventArgs)