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

Function table_init_block

reftable/table.c:166–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166int table_init_block(struct reftable_table *t, struct reftable_block *block,
167 uint64_t next_off, uint8_t want_typ)
168{
169 uint32_t header_off = next_off ? 0 : header_size(t->version);
170 int err;
171
172 if (next_off >= t->size)
173 return 1;
174
175 err = reftable_block_init(block, &t->source, next_off, header_off,
176 t->block_size, hash_size(t->hash_id), want_typ);
177 if (err)
178 reftable_block_release(block);
179 return err;
180}
181
182static void table_iter_close(struct table_iter *ti)
183{

Callers 3

table_iter_next_blockFunction · 0.85
table_iter_seek_toFunction · 0.85

Calls 4

header_sizeFunction · 0.85
reftable_block_initFunction · 0.85
hash_sizeFunction · 0.85
reftable_block_releaseFunction · 0.85

Tested by

no test coverage detected