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

Function table_offsets_for

reftable/table.c:19–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17#include "reftable-error.h"
18
19static struct reftable_table_offsets *
20table_offsets_for(struct reftable_table *t, uint8_t typ)
21{
22 switch (typ) {
23 case REFTABLE_BLOCK_TYPE_REF:
24 return &t->ref_offsets;
25 case REFTABLE_BLOCK_TYPE_LOG:
26 return &t->log_offsets;
27 case REFTABLE_BLOCK_TYPE_OBJ:
28 return &t->obj_offsets;
29 }
30 abort();
31}
32
33enum reftable_hash reftable_table_hash_id(struct reftable_table *t)
34{

Callers 3

table_iter_seek_startFunction · 0.85
table_iter_seekFunction · 0.85
table_init_iterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected