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

Function rioWriteBulkDouble

src/rio.cpp:486–492  ·  view source on GitHub ↗

Write a double value in the format: "$ \r\n \r\n" */

Source from the content-addressed store, hash-verified

484
485/* Write a double value in the format: "$<count>\r\n<payload>\r\n" */
486size_t rioWriteBulkDouble(rio *r, double d) {
487 char dbuf[128];
488 unsigned int dlen;
489
490 dlen = snprintf(dbuf,sizeof(dbuf),"%.17g",d);
491 return rioWriteBulkString(r,dbuf,dlen);
492}

Callers 1

rewriteSortedSetObjectFunction · 0.85

Calls 1

rioWriteBulkStringFunction · 0.85

Tested by

no test coverage detected