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