MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / ptrFromObj

Function ptrFromObj

src/server.h:1006–1011  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1004robj *objFromAllocPtr(void *pv);
1005
1006__attribute__((always_inline)) inline const void *ptrFromObj(robj_roptr &o)
1007{
1008 if (o->encoding == OBJ_ENCODING_EMBSTR)
1009 return ((char*)&(o)->m_ptr) + sizeof(struct sdshdr8);
1010 return o->m_ptr;
1011}
1012
1013__attribute__((always_inline)) inline void *ptrFromObj(const robj *o)
1014{

Callers 15

syncDeleteMethod · 0.85
parseScanCursorOrReplyFunction · 0.85
filterKeyFunction · 0.85
scanGenericCommandFunction · 0.85
getObjectTypeNameFunction · 0.85
setExpireMethod · 0.85
latencyCommandFunction · 0.85
clusterSendPublishFunction · 0.85
clusterCommandFunction · 0.85
mvccrestoreCommandFunction · 0.85
restoreCommandFunction · 0.85
migrateGetSocketFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected