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

Function readBytes

deps/hiredis/read.c:114–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114static char *readBytes(redisReader *r, unsigned int bytes) {
115 char *p;
116 if (r->len-r->pos >= bytes) {
117 p = r->buf+r->pos;
118 r->pos += bytes;
119 return p;
120 }
121 return NULL;
122}
123
124/* Find pointer to \r\n. */
125static char *seekNewline(char *s, size_t len) {

Callers 1

processItemFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected