github.com/primecitizens/pcz/std@v0.2.1/core/abi/map.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright 2023 The Prime Citizens
     3  //
     4  // Copyright 2023 The Go Authors. All rights reserved.
     5  // Use of this source code is governed by a BSD-style
     6  // license that can be found in the LICENSE file.
     7  
     8  package abi
     9  
    10  // Map constants common to several packages
    11  // runtime/runtime-gdb.py:MapTypePrinter contains its own copy
    12  const (
    13  	MapBucketCountBits = 3 // log2 of number of elements in a bucket.
    14  	MapBucketCount     = 1 << MapBucketCountBits
    15  	MapMaxKeyBytes     = 128 // Must fit in a uint8.
    16  	MapMaxElemBytes    = 128 // Must fit in a uint8.
    17  )