Skip to main content

bytes_from_array

Function bytes_from_array 

Source
pub fn bytes_from_array(val: &ValueWord) -> Result<Vec<u8>, String>
Expand description

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

Each array element must be an integer in the range 0..=255.