Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 240 for elem3 (0.05 sec)

  1. src/internal/abi/map.go

    const (
    	// Maximum number of key/elem pairs a bucket can hold.
    	MapBucketCountBits = 3 // log2 of number of elements in a bucket.
    	MapBucketCount     = 1 << MapBucketCountBits
    
    	// Maximum key or elem size to keep inline (instead of mallocing per element).
    	// Must fit in a uint8.
    	// Note: fast map functions cannot handle big elems (bigger than MapMaxElemBytes).
    	MapMaxKeyBytes  = 128
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 20:09:01 UTC 2024
    - 719 bytes
    - Viewed (0)
  2. utils/utils.go

    			if vv.IsValid() && !vv.IsZero() {
    				results[idx] = fmt.Sprint(reflect.Indirect(vv).Interface())
    			}
    		}
    	}
    
    	return strings.Join(results, "_")
    }
    
    func Contains(elems []string, elem string) bool {
    	for _, e := range elems {
    		if elem == e {
    			return true
    		}
    	}
    	return false
    }
    
    func AssertEqual(x, y interface{}) bool {
    	if reflect.DeepEqual(x, y) {
    		return true
    	}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 22 06:43:02 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/google/pprof/internal/driver/html/stacks.js

      function addElem(src, elem) {
        let list = elems.get(src);
        if (!list) {
          list = [];
          elems.set(src, list);
        }
        list.push(elem);
        elem.classList.toggle('hilite', matches.has(src));
      }
    
      // Adds or removes cl from classList of all elements for the specified source.
      function toggleClass(src, cl, value) {
        const list = elems.get(src);
        if (list) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  4. src/go/types/mono.go

    	// parameters that it's implicitly parameterized by.
    	for scope := obj.Parent(); scope != root; scope = scope.Parent() {
    		for _, elem := range scope.elems {
    			if elem, ok := elem.(*TypeName); ok && !elem.IsAlias() && cmpPos(elem.Pos(), obj.Pos()) < 0 {
    				if tpar, ok := elem.Type().(*TypeParam); ok {
    					if idx < 0 {
    						idx = len(w.vertices)
    						w.vertices = append(w.vertices, monoVertex{obj: obj})
    					}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/tests/tests.go

    		if !found {
    			pass.Reportf(fn.Pos(), "%s refers to unknown field or method: %s.%s", fnName, ident, mmbr)
    		}
    	}
    	if len(elems) == 3 && !isExampleSuffix(elems[2]) {
    		// Check ExampleFoo_Method_suffix and ExampleFoo_Method_Badsuffix.
    		pass.Reportf(fn.Pos(), "%s has malformed example suffix: %s", fnName, elems[2])
    	}
    }
    
    type tokenRange struct {
    	p, e token.Pos
    }
    
    func (r tokenRange) Pos() token.Pos {
    	return r.p
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  6. src/runtime/map.go

    	p := mapassign(t, h, key)
    	typedmemmove(t.Elem, p, elem)
    }
    
    //go:linkname reflect_mapassign_faststr reflect.mapassign_faststr0
    func reflect_mapassign_faststr(t *maptype, h *hmap, key string, elem unsafe.Pointer) {
    	p := mapassign_faststr(t, h, key)
    	typedmemmove(t.Elem, p, elem)
    }
    
    //go:linkname reflect_mapdelete reflect.mapdelete
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  7. src/go/types/array.go

    package types
    
    // An Array represents an array type.
    type Array struct {
    	len  int64
    	elem Type
    }
    
    // NewArray returns a new array type for the given element type and length.
    // A negative length indicates an unknown length.
    func NewArray(elem Type, len int64) *Array { return &Array{len: len, elem: elem} }
    
    // Len returns the length of array a.
    // A negative result indicates an unknown length.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 927 bytes
    - Viewed (0)
  8. src/strings/strings.go

    func Join(elems []string, sep string) string {
    	switch len(elems) {
    	case 0:
    		return ""
    	case 1:
    		return elems[0]
    	}
    
    	var n int
    	if len(sep) > 0 {
    		if len(sep) >= maxInt/(len(elems)-1) {
    			panic("strings: Join output length overflow")
    		}
    		n += len(sep) * (len(elems) - 1)
    	}
    	for _, elem := range elems {
    		if len(elem) > maxInt-n {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:48:16 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/scope.go

    func (s *Scope) InsertLazy(name string, resolve func() Object) bool {
    	if s.elems[name] != nil {
    		return false
    	}
    	s.insert(name, &lazyObject{parent: s, resolve: resolve})
    	return true
    }
    
    func (s *Scope) insert(name string, obj Object) {
    	if s.elems == nil {
    		s.elems = make(map[string]Object)
    	}
    	s.elems[name] = obj
    }
    
    // Squash merges s with its parent scope p by adding all
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  10. src/go/types/scope.go

    func (s *Scope) _InsertLazy(name string, resolve func() Object) bool {
    	if s.elems[name] != nil {
    		return false
    	}
    	s.insert(name, &lazyObject{parent: s, resolve: resolve})
    	return true
    }
    
    func (s *Scope) insert(name string, obj Object) {
    	if s.elems == nil {
    		s.elems = make(map[string]Object)
    	}
    	s.elems[name] = obj
    }
    
    // Squash merges s with its parent scope p by adding all
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top