github.com/primecitizens/pcz/std@v0.2.1/core/mem/notpcz.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // Copyright 2023 The Prime Citizens 3 4 //go:build !pcz 5 6 package mem 7 8 import ( 9 "unsafe" 10 _ "unsafe" // for go:linknanme 11 12 "github.com/primecitizens/pcz/std/core/abi" 13 ) 14 15 //go:linkname Equal runtime.memequal 16 func Equal(p, q unsafe.Pointer, sz uintptr) bool 17 18 //go:linkname Clear runtime.memclrNoHeapPointers 19 func Clear(p unsafe.Pointer, sz uintptr) 20 21 //go:linkname Move runtime.memmove 22 func Move(dst, src unsafe.Pointer, sz uintptr) 23 24 //go:linkname typedmemmove runtime.typedmemmove 25 func typedmemmove(typ *abi.Type, dst, src unsafe.Pointer)