std/xz: add SHA-256 checksum support

This commit is contained in:
Nigel Tao committed 2023-12-26 17:04:16 +11:00
1 parent a440f6dd5b
commit 79af52bb24
4 files changed
+177 -13

No files matched your search

+5
View File
@@ -892,6 +892,11 @@ wuffs_base__make_bitvec256(uint64_t e00,
return res;
}
static inline uint64_t //
wuffs_base__bitvec256__get(const wuffs_base__bitvec256* b, uint32_t i) {
return b->elements_u64[i & 3];
}
// --------
// wuffs_base__optional_u63 is like a std::optional<uint64_t>, but for C (not