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

Function MakePtr

storage/connect/plugutil.cpp:621–625  ·  view source on GitHub ↗

/ This routine makes a pointer from an offset to a memory pointer. */ /

Source from the content-addressed store, hash-verified

619/* This routine makes a pointer from an offset to a memory pointer. */
620/*************************************************************************/
621void* MakePtr(void* memp, size_t offset)
622{
623 // return ((offset == 0) ? NULL : &((char*)memp)[offset]);
624 return (!offset) ? NULL : (char *)memp + offset;
625} /* end of MakePtr */
626
627/*************************************************************************/
628/* This routine makes an offset from a pointer new format. */

Callers 15

PlgDBSubAllocFunction · 0.85
PlugSubAllocFunction · 0.85
MptrJsonMethod · 0.85
MptrArrayMethod · 0.85
MptrObjectMethod · 0.85
MptrPairMethod · 0.85
MptrJValueMethod · 0.85
MptrValMethod · 0.85
MPMethod · 0.85
MPPMethod · 0.85
MVPMethod · 0.85
MZPMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected