Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 108 for MapType (0.12 sec)

  1. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    func mapaccess1_fat(mapType *byte, hmap map[any]any, key *any, zero *byte) (val *any)
    func mapaccess2(mapType *byte, hmap map[any]any, key *any) (val *any, pres bool)
    func mapaccess2_fast32(mapType *byte, hmap map[any]any, key uint32) (val *any, pres bool)
    func mapaccess2_fast64(mapType *byte, hmap map[any]any, key uint64) (val *any, pres bool)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/adapter/CollectionMapper.java

        Map<Object, Object> createEmptyMap(Class<?> mapType) {
            if (mapType.isAssignableFrom(LinkedHashMap.class)) {
                return new LinkedHashMap<Object, Object>();
            }
            if (mapType.isAssignableFrom(TreeMap.class)) {
                return new TreeMap<Object, Object>();
            }
            throw new UnsupportedOperationException(String.format("Cannot convert a Map to type %s.", mapType.getName()));
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2K bytes
    - Viewed (0)
  3. test/fixedbugs/issue4879.dir/a.go

    type slice []int
    
    type maptype map[int]int
    
    func MakePrivateCollection() *Collection {
    	return &Collection{
    		root: unsafe.Pointer(&nodeLoc{}),
    	}
    }
    
    func MakePrivateCollection2() *Collection {
    	return &Collection{
    		root: unsafe.Pointer(&slice{}),
    	}
    }
    func MakePrivateCollection3() *Collection {
    	return &Collection{
    		root: unsafe.Pointer(&maptype{}),
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 25 23:43:31 UTC 2013
    - 466 bytes
    - Viewed (0)
  4. test/stress/maps.go

    package main
    
    import (
    	"math/rand"
    	"runtime"
    	"sync"
    )
    
    func mapTypes() []MapType {
    	// TODO(bradfitz): bunch more map types of all different key and value types.
    	// Use reflect.MapOf and a program to generate lots of types & struct types.
    	// For now, just one:
    	return []MapType{intMapType{}}
    }
    
    type MapType interface {
    	NewMap() Map
    }
    
    type Map interface {
    	AddItem()
    	DelItem()
    	Len() int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/composition.go

    	}
    	return NewCompositedCompilerFromTemplate(compositionContext), nil
    }
    
    func NewCompositedCompilerFromTemplate(context *CompositionEnv) *CompositedCompiler {
    	context = &CompositionEnv{
    		MapType:           context.MapType,
    		EnvSet:            context.EnvSet,
    		CompiledVariables: map[string]CompilationResult{},
    	}
    	compiler := NewCompiler(context.EnvSet)
    	filterCompiler := NewFilterCompiler(context.EnvSet)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 13 21:06:39 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  6. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/utils/KtFe10JvmTypeMapperContext.kt

                }
        }
    
        override val typeContext = KaFe10TypeSystemCommonBackendContextForTypeMapping(resolveSession)
    
        fun mapType(type: KotlinType, mode: TypeMappingMode = TypeMappingMode.DEFAULT, sw: JvmSignatureWriter? = null): Type {
            return AbstractTypeMapper.mapType(this, type, mode, sw)
        }
    
        fun isPrimitiveBacked(type: KotlinType): Boolean =
            AbstractTypeMapper.isPrimitiveBacked(this, type)
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/adapter/CollectionMapperTest.groovy

            SortedSet       | TreeSet
        }
    
        def "maps map types"() {
            expect:
            def map = mapper.createEmptyMap(sourceType)
            map.getClass() == mapType
    
            where:
            sourceType | mapType
            Map        | LinkedHashMap
            SortedMap  | TreeMap
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  8. src/runtime/map.go

    }
    
    func evacuated(b *bmap) bool {
    	h := b.tophash[0]
    	return h > emptyOne && h < minTopHash
    }
    
    func (b *bmap) overflow(t *maptype) *bmap {
    	return *(**bmap)(add(unsafe.Pointer(b), uintptr(t.BucketSize)-goarch.PtrSize))
    }
    
    func (b *bmap) setoverflow(t *maptype, ovf *bmap) {
    	*(**bmap)(add(unsafe.Pointer(b), uintptr(t.BucketSize)-goarch.PtrSize)) = ovf
    }
    
    func (b *bmap) keys() unsafe.Pointer {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  9. src/runtime/map_fast64.go

    }
    
    func growWork_fast64(t *maptype, h *hmap, bucket uintptr) {
    	// make sure we evacuate the oldbucket corresponding
    	// to the bucket we're about to use
    	evacuate_fast64(t, h, bucket&h.oldbucketmask())
    
    	// evacuate one more oldbucket to make progress on growing
    	if h.growing() {
    		evacuate_fast64(t, h, h.nevacuate)
    	}
    }
    
    func evacuate_fast64(t *maptype, h *hmap, oldbucket uintptr) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  10. src/internal/abi/type.go

    	if t.Kind() != Struct {
    		return nil
    	}
    	return (*StructType)(unsafe.Pointer(t))
    }
    
    // MapType returns t cast to a *MapType, or nil if its tag does not match.
    func (t *Type) MapType() *MapType {
    	if t.Kind() != Map {
    		return nil
    	}
    	return (*MapType)(unsafe.Pointer(t))
    }
    
    // ArrayType returns t cast to a *ArrayType, or nil if its tag does not match.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 21.8K bytes
    - Viewed (0)
Back to top