github.com/koykov/openrt@v0.0.0-20240411200908-3abd933415e1/memequal.go (about)

     1  package openrt
     2  
     3  import "unsafe"
     4  
     5  // Memequal copies n bytes from "from" to "to".
     6  func Memequal(a, b unsafe.Pointer, size uintptr) bool {
     7  	return memequal(a, b, size)
     8  }
     9  
    10  //go:noescape
    11  //go:linkname memequal runtime.memequal
    12  func memequal(a, b unsafe.Pointer, size uintptr) bool