Source file src/internal/abi/map.go

     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  )
    15  
    16  // ZeroValSize is the size in bytes of runtime.zeroVal.
    17  const ZeroValSize = 1024
    18  

View as plain text