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

Method SetArrayValue

storage/connect/json.cpp:1375–1386  ·  view source on GitHub ↗

/ Set the nth Value of the Array Value list or add it. */ /

Source from the content-addressed store, hash-verified

1373/* Set the nth Value of the Array Value list or add it. */
1374/***********************************************************************/
1375void JARRAY::SetArrayValue(PGLOBAL g, PJVAL jvp, int n)
1376{
1377 int i = 0;
1378 PJVAL jp, *jpp = &First;
1379
1380 for (jp = First; i < n; i++, jp = *(jpp = &jp->Next))
1381 if (!jp)
1382 *jpp = jp = new(g) JVALUE;
1383
1384 *jpp = jvp;
1385 jvp->Next = (jp ? jp->Next : NULL);
1386} // end of SetValue
1387
1388/***********************************************************************/
1389/* Return the text corresponding to all values. */

Callers 8

MakeTopTreeMethod · 0.45
WriteColumnMethod · 0.45
MakeDocumentMethod · 0.45
WriteDBMethod · 0.45
WriteValueMethod · 0.45
WriteColumnMethod · 0.45
MakeDocumentMethod · 0.45
WriteDBMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected