Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for MapMaxElemBytes (0.12 sec)

  1. src/runtime/map.go

    		t.Key.Size_ <= abi.MapMaxKeyBytes && (t.IndirectKey() || t.KeySize != uint8(t.Key.Size_)) {
    		throw("key size wrong")
    	}
    	if t.Elem.Size_ > abi.MapMaxElemBytes && (!t.IndirectElem() || t.ValueSize != uint8(goarch.PtrSize)) ||
    		t.Elem.Size_ <= abi.MapMaxElemBytes && (t.IndirectElem() || t.ValueSize != uint8(t.Elem.Size_)) {
    		throw("elem size wrong")
    	}
    	if t.Key.Align_ > abi.MapBucketCount {
    		throw("key align too big")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  2. src/reflect/type.go

    	}
    	mt.Flags = 0
    	if ktyp.Size_ > abi.MapMaxKeyBytes {
    		mt.KeySize = uint8(goarch.PtrSize)
    		mt.Flags |= 1 // indirect key
    	} else {
    		mt.KeySize = uint8(ktyp.Size_)
    	}
    	if etyp.Size_ > abi.MapMaxElemBytes {
    		mt.ValueSize = uint8(goarch.PtrSize)
    		mt.Flags |= 2 // indirect value
    	} else {
    		mt.MapType.ValueSize = uint8(etyp.Size_)
    	}
    	mt.MapType.BucketSize = uint16(mt.Bucket.Size_)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/dwarf.go

    		// compute size info like hashmap.c does.
    		indirectKey, indirectVal := false, false
    		if keysize > abi.MapMaxKeyBytes {
    			keysize = int64(d.arch.PtrSize)
    			indirectKey = true
    		}
    		if valsize > abi.MapMaxElemBytes {
    			valsize = int64(d.arch.PtrSize)
    			indirectVal = true
    		}
    
    		// Construct type to represent an array of BucketSize keys
    		keyname := d.nameFromDIESym(keytype)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
Back to top