diff options
Diffstat (limited to 'vendor/github.com/ugorji/go/codec/goversion_noswissmap_unsafe.go')
| -rw-r--r-- | vendor/github.com/ugorji/go/codec/goversion_noswissmap_unsafe.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/github.com/ugorji/go/codec/goversion_noswissmap_unsafe.go b/vendor/github.com/ugorji/go/codec/goversion_noswissmap_unsafe.go new file mode 100644 index 000000000..ca61f6f08 --- /dev/null +++ b/vendor/github.com/ugorji/go/codec/goversion_noswissmap_unsafe.go @@ -0,0 +1,16 @@ +// Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. +// Use of this source code is governed by a MIT license found in the LICENSE file. + +//go:build !safe && !codec.safe && !appengine && !go1.24 + +package codec + +import "unsafe" + +// retrofited from hIter struct + +type unsafeMapIterPadding struct { + _ [6]unsafe.Pointer // padding: *maptype, *hmap, buckets, *bmap, overflow, oldoverflow, + _ [4]uintptr // padding: uintptr, uint8, bool fields + _ uintptr // padding: wasted (try to fill cache-line at multiple of 4) +} |
