Skip to main content

f32_slice_mut

Function f32_slice_mut 

Source
pub unsafe fn f32_slice_mut<'a>(
    base: *mut u8,
    off: usize,
    n: usize,
) -> &'a mut [f32]
Expand description

View n f32 values at byte offset off of a mapped region.

ยงSafety

base must point to a live mapping at least off + 4n bytes long, off must be a multiple of 4 (the mapping itself is page-aligned), and no other live reference may alias the same range.