| 253 | } |
| 254 | |
| 255 | static int table_iter_seek_start(struct table_iter *ti, uint8_t typ, int index) |
| 256 | { |
| 257 | struct reftable_table_offsets *offs = table_offsets_for(ti->table, typ); |
| 258 | uint64_t off = offs->offset; |
| 259 | if (index) { |
| 260 | off = offs->index_offset; |
| 261 | if (off == 0) { |
| 262 | return 1; |
| 263 | } |
| 264 | typ = REFTABLE_BLOCK_TYPE_INDEX; |
| 265 | } |
| 266 | |
| 267 | return table_iter_seek_to(ti, off, typ); |
| 268 | } |
| 269 | |
| 270 | static int table_iter_seek_linear(struct table_iter *ti, |
| 271 | struct reftable_record *want) |
no test coverage detected