Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 74 for cmap (0.11 sec)

  1. pkg/controller/util/selectors/bimultimap_test.go

    func unorderedEqual(as, bs []Key) bool {
    	if len(as) != len(bs) {
    		return false
    	}
    	aMap := make(map[Key]int)
    	for _, a := range as {
    		aMap[a]++
    	}
    	bMap := make(map[Key]int)
    	for _, b := range bs {
    		bMap[b]++
    	}
    	if len(aMap) != len(bMap) {
    		return false
    	}
    	for a, count := range aMap {
    		if bMap[a] != count {
    			return false
    		}
    	}
    	return true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 13 01:56:36 UTC 2022
    - 16.9K bytes
    - Viewed (0)
  2. src/runtime/map_fast32.go

    )
    
    func mapaccess1_fast32(t *maptype, h *hmap, key uint32) unsafe.Pointer {
    	if raceenabled && h != nil {
    		callerpc := getcallerpc()
    		racereadpc(unsafe.Pointer(h), callerpc, abi.FuncPCABIInternal(mapaccess1_fast32))
    	}
    	if h == nil || h.count == 0 {
    		return unsafe.Pointer(&zeroVal[0])
    	}
    	if h.flags&hashWriting != 0 {
    		fatal("concurrent map read and map write")
    	}
    	var b *bmap
    	if h.B == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/text/cases/map.go

    // Annex #29, "Unicode Text Segmentation." For each word boundary, find the
    // first cased character F following the word boundary. If F exists, map F to
    // Titlecase_Mapping(F); then map all characters C between F and the following
    // word boundary to Lowercase_Mapping(C).
    func (t *titleCaser) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  4. src/runtime/map_fast64.go

    )
    
    func mapaccess1_fast64(t *maptype, h *hmap, key uint64) unsafe.Pointer {
    	if raceenabled && h != nil {
    		callerpc := getcallerpc()
    		racereadpc(unsafe.Pointer(h), callerpc, abi.FuncPCABIInternal(mapaccess1_fast64))
    	}
    	if h == nil || h.count == 0 {
    		return unsafe.Pointer(&zeroVal[0])
    	}
    	if h.flags&hashWriting != 0 {
    		fatal("concurrent map read and map write")
    	}
    	var b *bmap
    	if h.B == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  5. src/runtime/map_faststr.go

    	"unsafe"
    )
    
    func mapaccess1_faststr(t *maptype, h *hmap, ky string) unsafe.Pointer {
    	if raceenabled && h != nil {
    		callerpc := getcallerpc()
    		racereadpc(unsafe.Pointer(h), callerpc, abi.FuncPCABIInternal(mapaccess1_faststr))
    	}
    	if h == nil || h.count == 0 {
    		return unsafe.Pointer(&zeroVal[0])
    	}
    	if h.flags&hashWriting != 0 {
    		fatal("concurrent map read and map write")
    	}
    	key := stringStructOf(&ky)
    	if h.B == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go

    // == cannot be used to check for equivalence, and thus we cannot
    // simply use a Go map.
    //
    // Just as with map[K]V, a nil *Map is a valid empty map.
    //
    // Not thread-safe.
    type Map struct {
    	hasher Hasher             // shared by many Maps
    	table  map[uint32][]entry // maps hash to bucket; entry.key==nil means unused
    	length int                // number of map entries
    }
    
    // entry is an entry (key/value association) in a hash bucket.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  7. src/sync/map.go

    // The zero Map is empty and ready for use. A Map must not be copied after first use.
    //
    // In the terminology of [the Go memory model], Map arranges that a write operation
    // “synchronizes before” any read operation that observes the effect of the write, where
    // read and write operations are defined as follows.
    // [Map.Load], [Map.LoadAndDelete], [Map.LoadOrStore], [Map.Swap], [Map.CompareAndSwap],
    // and [Map.CompareAndDelete] are read operations;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  8. test/map.go

    	mss := make(map[string]string)
    	mspa := make(map[string][]string)
    	// BUG need an interface map both ways too
    
    	type T struct {
    		i int64 // can't use string here; struct values are only compared at the top level
    		f float32
    	}
    	mipT := make(map[int]*T)
    	mpTi := make(map[*T]int)
    	mit := make(map[int]T)
    	//	mti := make(map[T] int)
    
    	type M map[int]int
    	mipM := make(map[int]M)
    
    	var apT [2 * count]*T
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 06 21:02:55 UTC 2014
    - 14.9K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

            assertThat(map.containsKey("3"), is(not(true)));
            map.put("3", null);
            assertThat(map.containsKey("3"), is(true));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testIndexOf() throws Exception {
            assertThat(map.indexOf("test"), is(1));
            assertThat(map.indexOf(null), is(0));
            assertThat(map.indexOf("test3"), is(-1));
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  10. pkg/controller/podautoscaler/metrics/client_test.go

    				metrics := &cmapi.MetricValueList{
    					Items: []cmapi.MetricValue{
    						{
    							DescribedObject: v1.ObjectReference{
    								Kind:       tc.singleObject.Kind,
    								APIVersion: tc.singleObject.APIVersion,
    								Name:       tc.singleObject.Name,
    							},
    							Timestamp: metav1.Time{Time: timestamp},
    							Metric: cmapi.MetricIdentifier{
    								Name: tc.metricName,
    							},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 09 02:34:54 UTC 2021
    - 16.4K bytes
    - Viewed (0)
Back to top