summaryrefslogtreecommitdiff
path: root/reftable/block.h
AgeCommit message (Collapse)AuthorFilesLines
2021-10-08reftable: reading/writing blocksLibravatar Han-Wen Nienhuys1-0/+127
The reftable format is structured as a sequence of block. Within a block, records are prefix compressed, with an index of offsets for fully expand keys to enable binary search within blocks. This commit provides the logic to read and write these blocks. Helped-by: Carlo Marcelo Arenas Belón <carenas@gmail.com> Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>