Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 58 for pmap (0.09 sec)

  1. src/go/types/subst.go

    func (check *Checker) subst(pos token.Pos, typ Type, smap substMap, expanding *Named, ctxt *Context) Type {
    	assert(expanding != nil || ctxt != nil)
    
    	if smap.empty() {
    		return typ
    	}
    
    	// common cases
    	switch t := typ.(type) {
    	case *Basic:
    		return typ // nothing to do
    	case *TypeParam:
    		return smap.lookup(t)
    	}
    
    	// general case
    	subst := subster{
    		pos:       pos,
    		smap:      smap,
    		check:     check,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  2. pkg/proxy/util/utils_test.go

    				otherIPFamily = v1.IPv4Protocol
    			}
    
    			ipMap := MapIPsByIPFamily(testcase.ipString)
    
    			var ipStr []string
    			for _, ip := range ipMap[ipFamily] {
    				ipStr = append(ipStr, ip.String())
    			}
    			if !reflect.DeepEqual(testcase.expectCorrect, ipStr) {
    				t.Errorf("Test %v failed: expected %v, got %v", testcase.desc, testcase.expectCorrect, ipMap[ipFamily])
    			}
    			ipStr = nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 11:57:43 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  3. internal/config/identity/openid/jwt.go

    	"github.com/minio/minio/internal/auth"
    	xnet "github.com/minio/pkg/v3/net"
    	"github.com/minio/pkg/v3/policy"
    )
    
    type publicKeys struct {
    	*sync.RWMutex
    
    	// map of kid to public key
    	pkMap map[string]interface{}
    }
    
    func (pk *publicKeys) parseAndAdd(b io.Reader) error {
    	var jwk JWKS
    	err := json.NewDecoder(b).Decode(&jwk)
    	if err != nil {
    		return err
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 18:10:41 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  4. src/syscall/syscall_aix.go

    	if e1 != 0 {
    		err = e1
    	}
    	return
    }
    
    /*
     * Map
     */
    
    var mapper = &mmapper{
    	active: make(map[*byte][]byte),
    	mmap:   mmap,
    	munmap: munmap,
    }
    
    //sys	mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
    //sys	munmap(addr uintptr, length uintptr) (err error)
    
    func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  5. src/go/types/infer.go

    	//           (which only happens in case of an error) and then avoid doing
    	//           the substitution (which always happens).
    	if params.Len() > 0 {
    		smap := makeSubstMap(tparams, targs)
    		params = check.subst(nopos, params, smap, nil, check.context()).(*Tuple)
    	}
    
    	// Unify parameter and argument types for generic parameters with typed arguments
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  6. src/runtime/sys_darwin.go

    	}
    	return
    }
    func osinit_hack_trampoline()
    
    // mmap is used to do low-level memory allocation via mmap. Don't allow stack
    // splits, since this function (used by sysAlloc) is called in a lot of low-level
    // parts of the runtime and callers often assume it won't acquire any locks.
    //
    //go:nosplit
    func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uint32) (unsafe.Pointer, int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/predicates.go

    					g := b[i]
    					if f.Id() != g.Id() || !c.identical(f.typ, g.typ, q) {
    						return false
    					}
    				}
    				return true
    			}
    		}
    
    	case *Map:
    		// Two map types are identical if they have identical key and value types.
    		if y, ok := y.(*Map); ok {
    			return c.identical(x.key, y.key, p) && c.identical(x.elem, y.elem, p)
    		}
    
    	case *Chan:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/main.go

    	// which we don't know the size.
    	if ctxt.Arch.Family != sys.Wasm {
    		// Don't mmap if we're building for Wasm. Wasm file
    		// layout is very different so filesize is meaningless.
    		if err := ctxt.Out.Mmap(filesize); err != nil {
    			Exitf("mapping output file failed: %v", err)
    		}
    	}
    	// asmb will redirect symbols to the output file mmap, and relocations
    	// will be applied directly there.
    	bench.Start("Asmb")
    	asmb(ctxt)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:59:50 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  9. docs/vi/docs/python-types.md

    # Giới thiệu kiểu dữ liệu Python
    
    Python hỗ trợ tùy chọn "type hints" (còn được gọi là "type annotations").
    
    Những **"type hints"** hay chú thích là một cú pháp đặc biệt cho phép khai báo <abbr title="ví dụ: str, int, float, bool"> kiểu dữ liệu</abbr> của một biến.
    
    Bằng việc khai báo kiểu dữ liệu cho các biến của bạn, các trình soạn thảo và các công cụ có thể hỗ trợ bạn tốt hơn.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/named.go

    	// code.
    	if origSig.RecvTypeParams().Len() == t.inst.targs.Len() {
    		smap := makeSubstMap(origSig.RecvTypeParams().list(), t.inst.targs.list())
    		var ctxt *Context
    		if check != nil {
    			ctxt = check.context()
    		}
    		sig = check.subst(origm.pos, origSig, smap, t, ctxt).(*Signature)
    	}
    
    	if sig == origSig {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 23.9K bytes
    - Viewed (0)
Back to top