    def packReq(self):
        '''
        @brief: 序列化请求报文
        @return: 序列化后的请求报文
        @rtype: str
        '''
        if not self.request:
            return ''
        oos = TarsOutputStream()
        RequestPacket.writeTo(oos, self.request)
        reqpkt = oos.getBuffer()
        plen = len(reqpkt) + 4
        reqpkt = struct.pack('!i', plen) + reqpkt
        return reqpkt
@brief: 序列化请求报文
@return: 序列化后的请求报文
@rtype: str
biliup/Danmaku/tars/__TimeoutQueue.py