diff --git a/cryptovec/src/platform/wasm.rs b/cryptovec/src/platform/wasm.rs index 77f1cc8e..d3a7fbac 100644 --- a/cryptovec/src/platform/wasm.rs +++ b/cryptovec/src/platform/wasm.rs @@ -12,14 +12,4 @@ pub fn memset(ptr: *mut u8, value: i32, size: usize) { unsafe { std::ptr::write_bytes(ptr, byte_value, size); } -} - -pub fn memcpy(dest: *mut u32, src: *const u8, size: usize) { - unsafe { - // Convert dest to *mut u8 for byte-wise copying - let dest_bytes = dest as *mut u8; - - // Use std::ptr::copy_nonoverlapping to copy the data - std::ptr::copy_nonoverlapping(src, dest_bytes, size); - } -} +} \ No newline at end of file diff --git a/cryptovec/src/platform/windows.rs b/cryptovec/src/platform/windows.rs index 72e0b8f2..be85eed9 100644 --- a/cryptovec/src/platform/windows.rs +++ b/cryptovec/src/platform/windows.rs @@ -20,10 +20,4 @@ pub fn memset(ptr: *mut u8, value: i32, size: usize) { unsafe { libc::memset(ptr as *mut c_void, value, size); } -} - -pub fn memcpy(dest: *mut u32, src: *const u8, size: usize) { - unsafe { - libc::memcpy(dest as *mut c_void, src as *const c_void, size); - } -} +} \ No newline at end of file