github.com/twelsh-aw/go/src@v0.0.0-20230516233729-a56fe86a7c81/internal/abi/map.go (about) 1 // Copyright 2023 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 abi 6 7 // Map constants common to several packages 8 // runtime/runtime-gdb.py:MapTypePrinter contains its own copy 9 const ( 10 MapBucketCountBits = 3 // log2 of number of elements in a bucket. 11 MapBucketCount = 1 << MapBucketCountBits 12 MapMaxKeyBytes = 128 // Must fit in a uint8. 13 MapMaxElemBytes = 128 // Must fit in a uint8. 14 )