mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-09 00:55:32 +00:00
b6e47a3f4a
* update github.com/containerd/containerd v1.5.7 -> v1.5.9 * update github.com/lib/pq v1.10.3 -> v1.10.4 * update github.com/prometheus/client_golang v1.11.0 -> v1.12.0 * update github.com/rs/zerolog v1.25.0 -> v1.26.1 * update golang.org/x/crypto 2021-12-15 -> 2022-01-28
21 lines
No EOL
531 B
Go
21 lines
No EOL
531 B
Go
//+build !go1.18
|
|
|
|
package reflect2
|
|
|
|
import (
|
|
"unsafe"
|
|
)
|
|
|
|
// m escapes into the return value, but the caller of mapiterinit
|
|
// doesn't let the return value escape.
|
|
//go:noescape
|
|
//go:linkname mapiterinit reflect.mapiterinit
|
|
func mapiterinit(rtype unsafe.Pointer, m unsafe.Pointer) (val *hiter)
|
|
|
|
func (type2 *UnsafeMapType) UnsafeIterate(obj unsafe.Pointer) MapIterator {
|
|
return &UnsafeMapIterator{
|
|
hiter: mapiterinit(type2.rtype, *(*unsafe.Pointer)(obj)),
|
|
pKeyRType: type2.pKeyRType,
|
|
pElemRType: type2.pElemRType,
|
|
}
|
|
} |