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

Function zipmapGetEncodedLengthSize

src/zipmap.c:114–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114static unsigned int zipmapGetEncodedLengthSize(unsigned char *p) {
115 return (*p < ZIPMAP_BIGLEN) ? 1: 5;
116}
117
118/* Encode the length 'l' writing it in 'p'. If p is NULL it just returns
119 * the amount of bytes required to encode such a length. */

Callers 1

zipmapValidateIntegrityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected