Skip to main content

Module byte_utils

Module byte_utils 

Source
Expand description

Shared byte array conversion utilities.

Used by both compress and archive modules for converting between Shape’s Array<int> representation and Rust Vec<u8>.

Functions§

bytes_from_array
Extract a byte array (Array<int>) from a ValueWord into a Vec<u8>.
bytes_to_array
Convert a Vec<u8> into a ValueWord Array<int>.