Skip to main content

copy_tile

Function copy_tile 

Source
pub unsafe fn copy_tile<S: TileIO, D: TileIO>(
    src_io: &S,
    src_base: *const f32,
    dst_io: &D,
    dst_base: *mut f32,
    shape: Tile2,
)
Expand description

Tile copy via TileIO. Source and destination layouts can differ (the typical use: read strided source, write contiguous dst).

§Safety

src_base and dst_base must point into allocations large enough for shape’s extents under the IO layouts in src_io / dst_io. The two ranges may not overlap.