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

Function streamLength

src/t_stream.cpp:86–89  ·  view source on GitHub ↗

Return the length of a stream. */

Source from the content-addressed store, hash-verified

84
85/* Return the length of a stream. */
86unsigned long streamLength(robj_roptr subject) {
87 stream *s = (stream*)ptrFromObj(subject);
88 return s->length;
89}
90
91/* Set 'id' to be its successor stream ID.
92 * If 'id' is the maximal possible id, it is wrapped around to 0-0 and a

Callers 3

serverLogObjectDebugInfoFunction · 0.85
moduleDelKeyIfEmptyFunction · 0.85
RM_ValueLengthFunction · 0.85

Calls 1

ptrFromObjFunction · 0.85

Tested by

no test coverage detected