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

Method SwapJson

storage/connect/json.cpp:1840–1848  ·  view source on GitHub ↗

/ Replace all pointers by offsets or the opposite. */ /

Source from the content-addressed store, hash-verified

1838/* Replace all pointers by offsets or the opposite. */
1839/***********************************************************************/
1840void SWAP::SwapJson(PJSON jsp, bool move)
1841{
1842 if (move)
1843 MoffJson(jsp);
1844 else
1845 MptrJson((PJSON)MakeOff(Base, jsp));
1846
1847 return;
1848} // end of SwapJson
1849
1850/***********************************************************************/
1851/* Replace all pointers by offsets. */

Callers 2

ReadDBMethod · 0.80
jfile_bjsonFunction · 0.80

Calls 1

MakeOffFunction · 0.85

Tested by

no test coverage detected