Skip to main content

split_into_chunks

Function split_into_chunks 

Source
pub fn split_into_chunks(
    raw_data: &[u8],
    shape: &[u64],
    chunk_dims: &[u64],
    element_size: usize,
) -> Vec<(Vec<u64>, Vec<u8>)>
Expand description

Split raw data into chunk-sized pieces based on shape and chunk dimensions. Returns a Vec of (chunk_offset_per_dim, chunk_raw_bytes).