github.com/koykov/openrt@v0.0.0-20240411200908-3abd933415e1/memmove.go (about) 1 package openrt 2 3 import "unsafe" 4 5 // Memmove copies n bytes from "from" to "to". 6 func Memmove(to, from unsafe.Pointer, n uintptr) { 7 memmove(to, from, n) 8 } 9 10 //go:noescape 11 //go:linkname memmove runtime.memmove 12 func memmove(to, from unsafe.Pointer, n uintptr)