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

Function table_iter_seek_to

reftable/table.c:240–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240static int table_iter_seek_to(struct table_iter *ti, uint64_t off, uint8_t typ)
241{
242 int err;
243
244 err = table_init_block(ti->table, &ti->block, off, typ);
245 if (err != 0)
246 return err;
247
248 ti->typ = reftable_block_type(&ti->block);
249 ti->block_off = off;
250 block_iter_init(&ti->bi, &ti->block);
251 ti->is_finished = 0;
252 return 0;
253}
254
255static int table_iter_seek_start(struct table_iter *ti, uint8_t typ, int index)
256{

Callers 2

table_iter_seek_startFunction · 0.85
table_iter_seek_indexedFunction · 0.85

Calls 3

table_init_blockFunction · 0.85
reftable_block_typeFunction · 0.85
block_iter_initFunction · 0.85

Tested by

no test coverage detected