We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 969b7e4 commit 7e6847fCopy full SHA for 7e6847f
src/ipc.rs
@@ -700,6 +700,7 @@ impl IpcSharedMemoryVec {
700
}
701
702
703
+#[derive(Clone)]
704
pub struct IpcSharedMemoryReader(OsIpcSharedMemoryVec);
705
706
impl IpcSharedMemoryReader {
src/platform/unix/mod.rs
@@ -907,11 +907,7 @@ impl OsIpcSharedMemoryVec {
907
self.store.fd,
908
0,
909
);
910
- ptr::copy_nonoverlapping(
911
- bytes.as_ptr(),
912
- self.ptr.byte_offset(self.length as isize),
913
- bytes.len(),
914
- );
+ ptr::copy_nonoverlapping(bytes.as_ptr(), address as *mut u8, bytes.len());
915
OsIpcSharedMemoryIndex {
916
offset: self.length,
917
length: bytes.len(),
0 commit comments