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

Function rioWriteBulkLongLong

src/rio.cpp:477–483  ·  view source on GitHub ↗

Write a long long value in format: "$ \r\n \r\n". */

Source from the content-addressed store, hash-verified

475
476/* Write a long long value in format: "$<count>\r\n<payload>\r\n". */
477size_t rioWriteBulkLongLong(rio *r, long long l) {
478 char lbuf[32];
479 unsigned int llen;
480
481 llen = ll2string(lbuf,sizeof(lbuf),l);
482 return rioWriteBulkString(r,lbuf,llen);
483}
484
485/* Write a double value in the format: "$<count>\r\n<payload>\r\n" */
486size_t rioWriteBulkDouble(rio *r, double d) {

Callers 8

migrateCommandFunction · 0.85
rioWriteBulkObjectFunction · 0.85
rewriteListObjectFunction · 0.85
rewriteSetObjectFunction · 0.85
rewriteSortedSetObjectFunction · 0.85
rewriteAppendOnlyFileRioFunction · 0.85

Calls 2

ll2stringFunction · 0.85
rioWriteBulkStringFunction · 0.85

Tested by

no test coverage detected