Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 3,036 for seem (0.25 sec)

  1. src/internal/bisect/bisect.go

    	recent [128][4]uint64
    
    	// complete history for seen
    	mu sync.Mutex
    	m  map[uint64]bool
    }
    
    // seen records that h has now been seen and reports whether it was seen before.
    // When seen returns false, the caller is expected to print a report for h.
    func (d *dedup) seen(h uint64) bool {
    	d.mu.Lock()
    	if d.m == nil {
    		d.m = make(map[uint64]bool)
    	}
    	seen := d.m[h]
    	d.m[h] = true
    	d.mu.Unlock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 17:28:43 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/dependencies/classes-as-dependencies.md

    And we know that editors can't provide a lot of support (like completion) for `dict`s, because they can't know their keys and value types.
    
    We can do better...
    
    ## What makes a dependency
    
    Up to now you have seen dependencies declared as functions.
    
    But that's not the only way to declare dependencies (although it would probably be the more common).
    
    The key factor is that a dependency should be a "callable".
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  3. src/net/http/fs.go

    		size, err := content.Seek(0, io.SeekEnd)
    		if err != nil {
    			return 0, errSeeker
    		}
    		_, err = content.Seek(0, io.SeekStart)
    		if err != nil {
    			return 0, errSeeker
    		}
    		return size, nil
    	}
    	serveContent(w, req, name, modtime, sizeFunc, content)
    }
    
    // errSeeker is returned by ServeContent's sizeFunc when the content
    // doesn't seek properly. The underlying Seeker's error text isn't
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 17:06:47 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/initorder.go

    // If there is no such path, the result is nil.
    func findPath(objMap map[Object]*declInfo, from, to Object, seen map[Object]bool) []Object {
    	if seen[from] {
    		return nil
    	}
    	seen[from] = true
    
    	for d := range objMap[from].deps {
    		if d == to {
    			return []Object{d}
    		}
    		if P := findPath(objMap, d, to, seen); P != nil {
    			return append(P, d)
    		}
    	}
    
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 22:06:51 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  5. src/go/types/initorder.go

    // If there is no such path, the result is nil.
    func findPath(objMap map[Object]*declInfo, from, to Object, seen map[Object]bool) []Object {
    	if seen[from] {
    		return nil
    	}
    	seen[from] = true
    
    	for d := range objMap[from].deps {
    		if d == to {
    			return []Object{d}
    		}
    		if P := findPath(objMap, d, to, seen); P != nil {
    			return append(P, d)
    		}
    	}
    
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. src/go/types/predicates.go

    // If reportf != nil, it may be used to report why T is not comparable.
    func comparable(T Type, dynamic bool, seen map[Type]bool, reportf func(string, ...interface{})) bool {
    	if seen[T] {
    		return true
    	}
    	if seen == nil {
    		seen = make(map[Type]bool)
    	}
    	seen[T] = true
    
    	switch t := under(T).(type) {
    	case *Basic:
    		// assume invalid types to be comparable
    		// to avoid follow-up errors
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/deadstore.go

    	// eliminate.
    	var seen ir.NameSet
    	var stores []*Value
    	for _, b := range f.Blocks {
    		for _, v := range b.Values {
    			n, ok := v.Aux.(*ir.Name)
    			if !ok {
    				continue
    			}
    			if n.Class != ir.PAUTO {
    				continue
    			}
    
    			effect := v.Op.SymEffect()
    			switch effect {
    			case SymNone, SymWrite:
    				// If we haven't seen the auto yet
    				// then this might be a store we can
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 20:07:26 UTC 2024
    - 11K bytes
    - Viewed (0)
  8. src/crypto/rsa/rsa.go

    	lHash := hash.Sum(nil)
    	hash.Reset()
    
    	em := make([]byte, k)
    	seed := em[1 : 1+hash.Size()]
    	db := em[1+hash.Size():]
    
    	copy(db[0:hash.Size()], lHash)
    	db[len(db)-len(msg)-1] = 1
    	copy(db[len(db)-len(msg):], msg)
    
    	_, err := io.ReadFull(random, seed)
    	if err != nil {
    		return nil, err
    	}
    
    	mgf1XOR(db, hash, seed)
    	mgf1XOR(seed, hash, db)
    
    	if boring.Enabled {
    		var bkey *boring.PublicKeyRSA
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  9. src/go/types/builtins.go

    // yet been checked.
    func hasVarSize(t Type, seen map[*Named]bool) (varSized bool) {
    	// Cycles are only possible through *Named types.
    	// The seen map is used to detect cycles and track
    	// the results of previously seen types.
    	if named := asNamed(t); named != nil {
    		if v, ok := seen[named]; ok {
    			return v
    		}
    		if seen == nil {
    			seen = make(map[*Named]bool)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/pcln.go

    	ldr := ctxt.loader
    	seen := make(map[loader.Sym]struct{})
    	for _, s := range funcs {
    		if _, ok := seen[s]; !ok {
    			f(s)
    			seen[s] = struct{}{}
    		}
    
    		fi := ldr.FuncInfo(s)
    		if !fi.Valid() {
    			continue
    		}
    		fi.Preload()
    		for i, ni := 0, fi.NumInlTree(); i < int(ni); i++ {
    			call := fi.InlTree(i).Func
    			if _, ok := seen[call]; !ok {
    				f(call)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 29.6K bytes
    - Viewed (0)
Back to top