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

Method WriteStr

storage/connect/json.cpp:360–373  ·  view source on GitHub ↗

/ Concatenate a string to the Serialize string. */ /

Source from the content-addressed store, hash-verified

358/* Concatenate a string to the Serialize string. */
359/***********************************************************************/
360bool JOUTSTR::WriteStr(const char* s) {
361 if (s) {
362 size_t len = strlen(s);
363
364 if (N + len > Max)
365 return true;
366
367 memcpy(Strp + N, s, len);
368 N += len;
369 return false;
370 } else
371 return true;
372
373} // end of WriteStr
374
375/***********************************************************************/
376/* Concatenate a character to the Serialize string. */

Callers 12

SerializeArrayMethod · 0.80
SerializeObjectMethod · 0.80
SerializeValueMethod · 0.80
SerializeArrayMethod · 0.80
SerializeObjectMethod · 0.80
SerializeValueMethod · 0.80
LocateArrayMethod · 0.80
LocateObjectMethod · 0.80
AddPathMethod · 0.80
LocateArrayMethod · 0.80
LocateObjectMethod · 0.80
AddPathMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected