MCPcopy Create free account
hub / github.com/MariaDB/server / uses_buffer_owned_by

Method uses_buffer_owned_by

sql/sql_string.h:471–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469 inline void mark_as_const() { Alloced_length= 0;}
470
471 inline bool uses_buffer_owned_by(const Binary_string *s) const
472 {
473 return (s->alloced && Ptr >= s->Ptr && Ptr < s->Ptr + s->Alloced_length);
474 }
475
476 /* Swap two string objects. Efficient way to exchange data without memcpy. */
477 void swap(Binary_string &s)

Callers 4

setMethod · 0.45
append_valueMethod · 0.45
Binary_stringClass · 0.45
copy_if_not_allocedFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected