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

Method MptrPair

storage/connect/json.cpp:2015–2027  ·  view source on GitHub ↗

/ Replace all pair offsets by pointers. */ /

Source from the content-addressed store, hash-verified

2013/* Replace all pair offsets by pointers. */
2014/***********************************************************************/
2015PJPR SWAP::MptrPair(PJPR ojp) {
2016 PJPR jpp = (PJPR)MakePtr(Base, (size_t)ojp);
2017
2018 jpp->Key = (PCSZ)MakePtr(Base, (size_t)jpp->Key);
2019
2020 if (jpp->Val)
2021 jpp->Val = (PJVAL)MptrJValue(jpp->Val);
2022
2023 if (jpp->Next)
2024 jpp->Next = (PJPR)MptrPair(jpp->Next);
2025
2026 return jpp;
2027} // end of MptrPair
2028
2029/***********************************************************************/
2030/* Replace all value offsets by pointers. */

Callers

nothing calls this directly

Calls 1

MakePtrFunction · 0.85

Tested by

no test coverage detected