UnityEngine.Networking.NetworkServer.InvokeBytes C# (CSharp) Method

InvokeBytes() private method

private InvokeBytes ( ULocalConnectionToServer conn, byte buffer, int numBytes, int channelId ) : bool
conn ULocalConnectionToServer
buffer byte
numBytes int
channelId int
return bool
        internal bool InvokeBytes(ULocalConnectionToServer conn, byte[] buffer, int numBytes, int channelId)
        {
            NetworkReader reader = new NetworkReader(buffer);
            reader.ReadInt16();
            short key = reader.ReadInt16();
            if (handlers.ContainsKey(key) && (this.m_LocalConnection != null))
            {
                this.m_LocalConnection.InvokeHandler(key, reader, channelId);
                return true;
            }
            return false;
        }