[][src]Function arrow::memory::memcpy

pub unsafe fn memcpy(dst: *mut u8, src: *const u8, len: usize)

Safety

Behavior is undefined if any of the following conditions are violated:

  • src must be [valid] for reads of len * size_of::<T>() bytes.

  • dst must be [valid] for writes of len * size_of::<T>() bytes.

  • Both src and dst must be properly aligned.

memcpy creates a bitwise copy of T, regardless of whether T is Copy. If T is not Copy, using both the values in the region beginning at *src and the region beginning at *dst can [violate memory safety][read-ownership].