Function workflow_rs::core::utils::buffer_as_slice
source ยท pub fn buffer_as_slice<'data, T>(
data: &'data [u8],
byte_offset: usize,
elements: usize,
) -> &'data [T]where
T: 'data,
Expand description
Takes a &[u8]
buffer slice and returns a slice &[T]
with a given number of elements of type T