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

Function mp_cur_init

deps/lua/src/lua_cmsgpack.c:154–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152} mp_cur;
153
154void mp_cur_init(mp_cur *cursor, const unsigned char *s, size_t len) {
155 cursor->p = s;
156 cursor->left = len;
157 cursor->err = MP_CUR_ERROR_NONE;
158}
159
160#define mp_cur_consume(_c,_len) do { _c->p += _len; _c->left -= _len; } while(0)
161

Callers 1

lua_cmsgpack.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected