- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for IndirectKey (0.24 sec)
-
src/runtime/map.go
} continue } k := add(unsafe.Pointer(b), dataOffset+i*uintptr(t.KeySize)) k2 := k if t.IndirectKey() { k2 = *((*unsafe.Pointer)(k2)) } if !t.Key.Equal(key, k2) { continue } // Only clear key if there are pointers in it. if t.IndirectKey() { *(*unsafe.Pointer)(k) = nil } else if t.Key.Pointers() { memclrHasPointers(k, t.Key.Size_) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 57.6K bytes - Viewed (0) -
src/cmd/link/internal/ld/dwarf.go
keytype, valtype = d.walksymtypedef(d.defgotype(keytype)), d.walksymtypedef(d.defgotype(valtype)) // 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 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 16:25:18 UTC 2024 - 72.4K bytes - Viewed (0) -
src/internal/abi/type.go
BucketSize uint16 // size of bucket Flags uint32 } // Note: flag values must match those used in the TMAP case // in ../cmd/compile/internal/reflectdata/reflect.go:writeType. func (mt *MapType) IndirectKey() bool { // store ptr to key instead of key itself return mt.Flags&1 != 0 } func (mt *MapType) IndirectElem() bool { // store ptr to elem instead of elem itself return mt.Flags&2 != 0 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 17 21:09:59 UTC 2024 - 21.8K bytes - Viewed (0)