MCPcopy Create free account
hub / github.com/SharpCoder/teensycore / copy

Function copy

src/mem.rs:190–198  ·  view source on GitHub ↗
(src: u32, dest: u32, len: u32)

Source from the content-addressed store, hash-verified

188/// from src and into dest.
189#[cfg(not(feature = "testing"))]
190pub fn copy(src: u32, dest: u32, len: u32) {
191 for byte in 0..len {
192 unsafe {
193 let src_ptr = (src + byte) as *mut u8;
194 let dst_ptr = (dest + byte) as *mut u8;
195 *dst_ptr = *src_ptr;
196 }
197 }
198}
199
200/// Internal use only.
201///

Callers 1

usb_serial_flushFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected