MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / write_length_encoded_string4

Function write_length_encoded_string4

sql-common/client.c:2434–2443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2432*/
2433
2434char *write_length_encoded_string4(char *dest, char *dest_end, char *src,
2435 char *src_end)
2436{
2437 size_t src_len= (size_t)(src_end - src);
2438 uchar *to= net_store_length((uchar*) dest, src_len);
2439 if ((char*)(to + src_len) >= dest_end)
2440 return NULL;
2441 memcpy(to, src, src_len);
2442 return (char*)(to + src_len);
2443}
2444
2445
2446/*

Callers 1

send_client_reply_packetFunction · 0.85

Calls 1

net_store_lengthFunction · 0.85

Tested by

no test coverage detected