split bytes utils into unit
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
af81baae44
commit
3b9fba233c
4 changed files with 45 additions and 31 deletions
|
@ -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]>>()
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue