Rename MYSQL_GET_PACKET_LEN to MYSQL_GET_PAYLOAD_LEN
The function returns the length of the payload, not the length of the entire packet.
This commit is contained in:
@ -301,7 +301,7 @@ static inline uint8_t MYSQL_GET_PACKET_NO(const uint8_t* header)
|
||||
return header[3];
|
||||
}
|
||||
|
||||
static inline uint32_t MYSQL_GET_PACKET_LEN(const uint8_t* header)
|
||||
static inline uint32_t MYSQL_GET_PAYLOAD_LEN(const uint8_t* header)
|
||||
{
|
||||
return gw_mysql_get_byte3(header);
|
||||
}
|
||||
|
Reference in New Issue
Block a user