Source file src/internal/runtime/maps/runtime.go
1 // Copyright 2024 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package maps 6 7 import ( 8 "internal/abi" 9 "unsafe" 10 ) 11 12 // Functions below pushed from runtime. 13 14 //go:linkname fatal 15 func fatal(s string) 16 17 //go:linkname rand 18 func rand() uint64 19 20 //go:linkname typedmemmove 21 func typedmemmove(typ *abi.Type, dst, src unsafe.Pointer) 22 23 //go:linkname typedmemclr 24 func typedmemclr(typ *abi.Type, ptr unsafe.Pointer) 25 26 //go:linkname newarray 27 func newarray(typ *abi.Type, n int) unsafe.Pointer 28 29 //go:linkname newobject 30 func newobject(typ *abi.Type) unsafe.Pointer 31