Example #1
0
const char* rpacket_read_string(rpacket_t r)
{
	uint32_t len = 0;
	if(r->raw)//raw类型的rpacket不支持读取字符串
		return rpacket_raw_read_binary(r,&len);
	return (const char *)rpacket_read_binary(r,&len);
}
Example #2
0
const char*
rpacket_read_string(rpacket *r)
{
	return rpacket_read_binary(r,NULL);
}