[−][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 oflen * size_of::<T>()
bytes. -
dst
must be [valid] for writes oflen * size_of::<T>()
bytes. -
Both
src
anddst
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].