]> git.ipfire.org Git - thirdparty/git.git/commit
reftable/record: extract function to decode key lengths
authorPatrick Steinhardt <ps@pks.im>
Wed, 3 Apr 2024 06:04:22 +0000 (08:04 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Apr 2024 16:16:50 +0000 (09:16 -0700)
commitcd75790707fe0068abff6729f0697e26c3630702
tree03e3e6c5e99eb91cd0bc34dcc810a457a4e3eb8d
parentf9e88544f5488adf07fd9c217ab6ab8f433a1ce8
reftable/record: extract function to decode key lengths

We're about to refactor the binary search over restart points so that it
does not need to fully decode the record keys anymore. To do so we will
need to decode the record key lengths, which is non-trivial logic.

Extract the logic to decode these lengths from `refatble_decode_key()`
so that we can reuse it.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reftable/record.c
reftable/record.h