UnityEngine.Networking.ChannelBuffer.ChannelBuffer C# (CSharp) Method

ChannelBuffer() public method

public ChannelBuffer ( NetworkConnection conn, int bufferSize, byte cid, bool isReliable ) : System
conn NetworkConnection
bufferSize int
cid byte
isReliable bool
return System
        public ChannelBuffer(NetworkConnection conn, int bufferSize, byte cid, bool isReliable)
        {
            this.m_Connection = conn;
            this.m_MaxPacketSize = bufferSize - 100;
            this.m_CurrentPacket = new ChannelPacket(this.m_MaxPacketSize, isReliable);
            this.m_ChannelId = cid;
            this.m_MaxPendingPacketCount = 0x10;
            this.m_IsReliable = isReliable;
            if (isReliable)
            {
                this.m_PendingPackets = new List<ChannelPacket>();
                if (s_FreePackets == null)
                {
                    s_FreePackets = new List<ChannelPacket>();
                }
            }
        }