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

Function GetMemPtr

storage/connect/jsonudf.cpp:1579–1582  ·  view source on GitHub ↗

/ GetMemPtr: returns the memory pointer used by this argument. */ /

Source from the content-addressed store, hash-verified

1577/* GetMemPtr: returns the memory pointer used by this argument. */
1578/*********************************************************************************/
1579static PGLOBAL GetMemPtr(PGLOBAL g, UDF_ARGS *args, uint i)
1580{
1581 return (IsJson(args, i) == 3) ? ((PBSON)args->args[i])->G : g;
1582} // end of GetMemPtr
1583
1584/*********************************************************************************/
1585/* GetFileLength: returns file size in number of bytes. */

Callers 12

json_array_addFunction · 0.85
json_array_deleteFunction · 0.85
json_object_addFunction · 0.85
json_object_deleteFunction · 0.85
json_item_mergeFunction · 0.85
handle_itemFunction · 0.85
jbin_array_add_valuesFunction · 0.85
jbin_array_addFunction · 0.85
jbin_array_deleteFunction · 0.85
jbin_object_addFunction · 0.85
jbin_item_mergeFunction · 0.85
bin_handle_itemFunction · 0.85

Calls 1

IsJsonFunction · 0.85

Tested by

no test coverage detected