71static inline char *
ut_strcpy(
char *dest,
const char *src);
83static inline int ut_strcmp(
const char *str1,
const char *str2);
136 return reinterpret_cast<uintptr_t
>(ptr) %
alignof(T) == 0;
143[[nodiscard]]
inline bool is_zeros(
const void *
start,
size_t number_of_bytes) {
144 auto *first_byte =
reinterpret_cast<const char *
>(
start);
145 return number_of_bytes == 0 ||
147 std::memcmp(first_byte, first_byte + 1, number_of_bytes - 1) == 0);
constexpr DWORD buf_size
Definition: create_def.cc:228
static void start(mysql_harness::PluginFuncEnv *env)
Definition: http_auth_backend_plugin.cc:177
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1052
Definition: buf0block_hint.cc:30
This file contains a set of libraries providing overloads for regular dynamic allocation routines whi...
Definition: aligned_alloc.h:48
bool is_aligned_as(void const *const ptr)
Checks if the pointer has address aligned properly for a given type.
Definition: ut0mem.h:132
bool is_zeros(const void *start, size_t number_of_bytes)
Checks if memory range is all zeros.
Definition: ut0mem.h:143
The interface to the operating system condition variables.
Version control for database, common definitions, and include files.
unsigned long int ulint
Definition: univ.i:406
static ulint ut_strlen(const char *str)
Wrapper for strlen(3).
char * ut_str3cat(const char *s1, const char *s2, const char *s3)
Definition: ut0mem.cc:61
static char * ut_strcpy(char *dest, const char *src)
Wrapper for strcpy(3).
static ulint ut_str_sql_format(const char *str, ulint str_len, char *buf, ulint buf_size)
Adds single quotes to the start and end of string and escapes any quotes by doubling them.
ulint ut_strlcpy(char *dst, const char *src, ulint size)
Copies up to size - 1 characters from the NUL-terminated string src to dst, NUL-terminating the resul...
Definition: ut0mem.cc:43
static int ut_memcmp(const void *str1, const void *str2, ulint n)
Wrapper for memcmp(3).
static void * ut_memcpy(void *dest, const void *src, ulint n)
Wrapper for memcpy(3).
static void * ut_memmove(void *dest, const void *src, ulint n)
Wrapper for memmove(3).
static ulint ut_raw_to_hex(const void *raw, ulint raw_size, char *hex, ulint hex_size)
Converts a raw binary data to a NUL-terminated hex string.
static int ut_strcmp(const char *str1, const char *str2)
Wrapper for strcmp(3).
int n
Definition: xcom_base.cc:509