1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-29355 Backport templatized INET6 implementation from 10.7 to 10.6

This commit is contained in:
Alexander Barkov
2022-08-23 13:17:35 +04:00
parent 4feb9df105
commit 0e8544cd73
9 changed files with 2174 additions and 2112 deletions

View File

@ -484,6 +484,11 @@ public:
if (str.Alloced_length)
Alloced_length= (uint32) (str.Alloced_length - offset);
}
LEX_CSTRING to_lex_cstring() const
{
LEX_CSTRING tmp= {Ptr, str_length};
return tmp;
}
inline LEX_CSTRING *get_value(LEX_CSTRING *res)
{
res->str= Ptr;