split bytes utils into unit

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-07-03 00:54:36 +00:00
parent af81baae44
commit 3b9fba233c
4 changed files with 45 additions and 31 deletions

View file

@ -38,7 +38,7 @@ impl Data {
.map(|chain| {
chain
.chunks_exact(size_of::<u64>())
.map(|chunk| utils::u64_from_bytes(chunk).expect("byte length is correct"))
.map(utils::u64_from_u8)
.collect::<Arc<[u64]>>()
});