Rolled back some stuff here like the package stuff

This will add support to view live data
This commit is contained in:
2024-10-27 22:48:32 +00:00
parent 62a38da3b3
commit 2bc756a2f0
14 changed files with 1500 additions and 765 deletions
+15
View File
@@ -0,0 +1,15 @@
package sharedMem
import (
"unsafe"
)
func copySlice2Ptr(b []byte, p uintptr, off int64, size uint32) int {
bb := unsafe.Slice((*byte)(*(*unsafe.Pointer)(unsafe.Pointer(&p))), int(size))
return copy(bb[off:], b)
}
func copyPtr2Slice(p uintptr, b []byte, off int64, size uint32) int {
bb := unsafe.Slice((*byte)(*(*unsafe.Pointer)(unsafe.Pointer(&p))), int(size))
return copy(b, bb[off:size])
}