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

Function rdbLoadBinaryFloatValue

src/rdb.cpp:669–673  ·  view source on GitHub ↗

Like rdbLoadBinaryDoubleValue() but single precision. */

Source from the content-addressed store, hash-verified

667
668/* Like rdbLoadBinaryDoubleValue() but single precision. */
669int rdbLoadBinaryFloatValue(rio *rdb, float *val) {
670 if (rioRead(rdb,val,sizeof(*val)) == 0) return -1;
671 memrev32ifbe(val);
672 return 0;
673}
674
675/* Save the object type of object "o". */
676int rdbSaveObjectType(rio *rdb, robj_roptr o) {

Callers 2

rdbLoadCheckModuleValueFunction · 0.85
RM_LoadFloatFunction · 0.85

Calls 1

rioReadFunction · 0.85

Tested by

no test coverage detected