コード例 #1
0
ファイル: RedisProtocolData.cs プロジェクト: zjbsean/TM
        public RedisProtocolData(ref byte[] redisProtocol)
        {
            ByteArray redisProtocolDataArr = RedisCommonFunc.RedisObjBytesToObjByteArray(ref redisProtocol);

            m_SourceChannelID  = redisProtocolDataArr.readDynamicsInt();
            m_IsFromClient     = redisProtocolDataArr.readByte();
            m_IsLongConnect    = redisProtocolDataArr.readByte();
            m_GameProtocolData = ByteArray.SReadFromByteArray(redisProtocolDataArr);
        }
コード例 #2
0
        public RedisLPush(string key, ByteArray datas, RedisCommandCallBackNullFunc commandCallBack, params object[] argv)
            : base(commandCallBack != null)
        {
            m_key                 = key;
            m_value               = RedisCommonFunc.ObjByteArrayToRedisObjBytes(datas);
            m_commandCallBack     = commandCallBack;
            m_commandCallBackArgv = argv;
#if RedisCommandSpendTime
            m_sw.Start();
#endif
        }