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

Function reftable_buf_setlen

reftable/basics.c:100–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100int reftable_buf_setlen(struct reftable_buf *buf, size_t len)
101{
102 if (len > buf->len)
103 return -1;
104 if (len == buf->len)
105 return 0;
106 buf->buf[len] = '\0';
107 buf->len = len;
108 return 0;
109}
110
111int reftable_buf_cmp(const struct reftable_buf *a, const struct reftable_buf *b)
112{

Callers 2

reftable_writer_add_logFunction · 0.85
reftable_decode_keyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected