[−][src]Function arrow::memory::memcpy
pub unsafe fn memcpy(dst: NonNull<u8>, src: NonNull<u8>, count: usize)
Safety
Behavior is undefined if any of the following conditions are violated:
-
src
must be valid for reads oflen * size_of::<u8>()
bytes. -
dst
must be valid for writes oflen * size_of::<u8>()
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].