| 238 | } |
| 239 | |
| 240 | static 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 | |
| 255 | static int table_iter_seek_start(struct table_iter *ti, uint8_t typ, int index) |
| 256 | { |
no test coverage detected