Skip to main content

slice_array

Function slice_array 

Source
pub fn slice_array(view: &V2TypedArrayView, start: u32, end: u32) -> *mut u8
Expand description

arr.slice(start, end) — bounded copy of [start..end). start and end are clamped to [0, view.len]; if start >= end, the result is empty. Mirrors Rust’s slice::get(range) clamping behaviour.