te qw/inflate/;
use IO::Uncompress::Bunzip2 qw/bunzip2/;
use List::Util qw/sum/;
use JSON::MaybeXS qw/decode_json/;
use UUID::Tiny qw/uuid_to_string/;
use constant HEADER_SPEC => [
[signature
at version' if $header{version} != 1;
read $fh, my $meta, $header{meta_length};
$meta = decode_json decompress $meta;
my %obj = (
%header,
fh => $fh,
meta => $meta,
index_format => ($head