MCPcopy Create free account
hub / github.com/git/git / string_view_consume

Function string_view_consume

reftable/record.h:29–33  ·  view source on GitHub ↗

Advance `s.buf` by `n`, and decrease length. */

Source from the content-addressed store, hash-verified

27
28/* Advance `s.buf` by `n`, and decrease length. */
29static inline void string_view_consume(struct string_view *s, int n)
30{
31 s->buf += n;
32 s->len -= n;
33}
34
35/*
36 * Decode and encode a varint. Returns the number of bytes read/written, or a

Callers 15

decode_stringFunction · 0.85
encode_stringFunction · 0.85
reftable_encode_keyFunction · 0.85
reftable_decode_keylenFunction · 0.85
reftable_decode_keyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected