FMYCPGKDAPOUFLQOCXXKZ6TR75HT3TNCG4X3GAJDM4ARWKNWOSWAC
XTKRT6OQYN4LARQRDLI2KBSAJTOFZNT4AMBZ46CPUDZXD7IDYYWQC
OBKF6SIIFFHHY7YWKPPX75N23NAVUD5662DKIHXSSIDPKKXQ5ZDQC
Q7TKZCJP2Z75EICZYKCEZDHKGERSOKZGMTSU3UXETBHTF663T66AC
YG4DZB3AW3Z3LB5CFBZZ4ORJOLZFN3G4CA2YTAMSUOQX3USVNVEAC
LCEKN25G5GFBUWWQAR4REIGPOL6JYNDWLNCDJGZQKOWIDHGIRMZAC
Y26WT3ZFN7KSVXOZ26B5Y2OR4M4VQYQLPMAHPC4O5VIT3ENBISXAC
LVX6U4EKYXM6H32X5SZS4UBIM5PW4ND4F4QQOF5EQDX3DUHBYFGAC
for (i = 0; i < target->len; i++) {
target->entries[i].variant = bincode_getu32(binstat);
switch (target->entries[i].variant) {
case HASH_BLAKE3:
memcpy(target->entries[i].bytes, binstat->buf,
BLAKE3_BYTES);
binstat->buf += BLAKE3_BYTES;
binstat->avail -= BLAKE3_BYTES;
break;
case HASH_NONE:
/* Do nothing, no bytes to consume */
break;
default:
abort();
}
}
}
printf("[[dependencies]]\n");
for (i = 0; i < hashed.dependencies.len; i++) {
hashed.dependencies.entries[i].variant =
bincode_getu32(&binstat);
switch (hashed.dependencies.entries[i].variant) {
case HASH_BLAKE3:
memcpy(hashed.dependencies.entries[i].bytes,
binstat.buf, BLAKE3_BYTES);
binstat.buf += BLAKE3_BYTES;
binstat.avail -= BLAKE3_BYTES;
break;
case HASH_NONE:
/* Do nothing, no bytes to consume */
break;
default:
abort();
}
hash_print(&hashed.dependencies.entries[i]);
}
len = bincode_getu64(&binstat);
hashed.extra_known.len = len;
hashed.extra_known.entries = xmalloc(sizeof(struct hash) * len);
printf("[[extra_known]]\n");
for (i = 0; i < hashed.extra_known.len; i++) {
hashed.extra_known.entries[i].variant =
bincode_getu32(&binstat);
switch (hashed.extra_known.entries[i].variant) {
case HASH_BLAKE3:
memcpy(hashed.extra_known.entries[i].bytes, binstat.buf,
BLAKE3_BYTES);
binstat.buf += BLAKE3_BYTES;
binstat.avail -= BLAKE3_BYTES;
break;
case HASH_NONE:
/* Do nothing, no bytes to consume */
break;
default:
abort();
}
hash_print(&hashed.extra_known.entries[i]);
}
change_decode_hashlist(&binstat, &hashed.extra_known);