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

Function lpAppendInteger

src/t_stream.cpp:252–256  ·  view source on GitHub ↗

This is just a wrapper for lpAppend() to directly use a 64 bit integer * instead of a string. */

Source from the content-addressed store, hash-verified

250/* This is just a wrapper for lpAppend() to directly use a 64 bit integer
251 * instead of a string. */
252unsigned char *lpAppendInteger(unsigned char *lp, int64_t value) {
253 char buf[LONG_STR_SIZE];
254 int slen = ll2string(buf,sizeof(buf),value);
255 return lpAppend(lp,(unsigned char*)buf,slen);
256}
257
258/* This is just a wrapper for lpReplace() to directly use a 64 bit integer
259 * instead of a string to replace the current element. The function returns

Callers 1

streamAppendItemFunction · 0.85

Calls 2

ll2stringFunction · 0.85
lpAppendFunction · 0.85

Tested by

no test coverage detected