Lines Matching refs:persistent
29 void * (*m_pemalloc)(size_t size, bool persistent MYSQLND_MEM_D);
31 void * (*m_pecalloc)(unsigned int nmemb, size_t size, bool persistent MYSQLND_MEM_D);
33 void * (*m_perealloc)(void *ptr, size_t new_size, bool persistent MYSQLND_MEM_D);
35 void (*m_pefree)(void *ptr, bool persistent MYSQLND_MEM_D);
36 char * (*m_pememdup)(const char * const ptr, size_t size, bool persistent MYSQLND_MEM_D);
37 char * (*m_pestrndup)(const char * const ptr, size_t size, bool persistent MYSQLND_MEM_D);
38 char * (*m_pestrdup)(const char * const ptr, bool persistent MYSQLND_MEM_D);
58 static inline MYSQLND_STRING mnd_dup_cstring(const MYSQLND_CSTRING str, const bool persistent) in mnd_dup_cstring() argument
60 const MYSQLND_STRING ret = {(char*) mnd_pemalloc(str.l + 1, persistent), str.l}; in mnd_dup_cstring()
86 …sqlnd_set_persistent_string(MYSQLND_STRING *buf, const char *string, size_t len, bool persistent) { in mysqlnd_set_persistent_string() argument
88 mnd_pefree(buf->s, persistent); in mysqlnd_set_persistent_string()
93 buf->s = mnd_pestrndup(string, len, persistent); in mysqlnd_set_persistent_string()