MCPcopy Create free account
hub / github.com/Tencent/phxsql / get_41_protocol_string

Function get_41_protocol_string

phx_percona/percona/sql/sql_acl.cc:10411–10427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10409*/
10410
10411static
10412char *get_41_protocol_string(char **buffer,
10413 size_t *max_bytes_available,
10414 size_t *string_length)
10415{
10416 char *str= (char *)memchr(*buffer, '\0', *max_bytes_available);
10417
10418 if (str == NULL)
10419 return NULL;
10420
10421 *string_length= (size_t)(str - *buffer);
10422 *max_bytes_available-= *string_length + 1;
10423 str= *buffer;
10424 *buffer += *string_length + 1;
10425
10426 return str;
10427}
10428
10429
10430/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected