Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 210 for gotype (0.17 sec)

  1. test/typeparam/dottype.go

    package main
    
    func f[T any](x interface{}) T {
    	return x.(T)
    }
    func f2[T any](x interface{}) (T, bool) {
    	t, ok := x.(T)
    	return t, ok
    }
    
    type I interface {
    	foo()
    }
    
    type myint int
    
    func (myint) foo() {
    }
    
    type myfloat float64
    
    func (myfloat) foo() {
    }
    
    func g[T I](x I) T {
    	return x.(T)
    }
    func g2[T I](x I) (T, bool) {
    	t, ok := x.(T)
    	return t, ok
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  2. test/typeparam/dottype.out

    Keith Randall <******@****.***> 1627346462 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 29 17:15:21 UTC 2021
    - 47 bytes
    - Viewed (0)
  3. src/net/internal/socktest/switch_windows.go

    type Sockets map[syscall.Handle]Status
    
    func (sw *Switch) sockso(s syscall.Handle) *Status {
    	sw.smu.RLock()
    	defer sw.smu.RUnlock()
    	so, ok := sw.sotab[s]
    	if !ok {
    		return nil
    	}
    	return &so
    }
    
    // addLocked returns a new Status without locking.
    // sw.smu must be held before call.
    func (sw *Switch) addLocked(s syscall.Handle, family, sotype, proto int) *Status {
    	sw.once.Do(sw.init)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 13 21:38:34 UTC 2015
    - 730 bytes
    - Viewed (0)
  4. src/net/sock_posix.go

    func socket(ctx context.Context, net string, family, sotype, proto int, ipv6only bool, laddr, raddr sockaddr, ctrlCtxFn func(context.Context, string, string, syscall.RawConn) error) (fd *netFD, err error) {
    	s, err := sysSocket(family, sotype, proto)
    	if err != nil {
    		return nil, err
    	}
    	if err = setDefaultSockopts(s, family, sotype, ipv6only); err != nil {
    		poll.CloseFunc(s)
    		return nil, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  5. src/net/internal/socktest/sys_windows.go

    import (
    	"internal/syscall/windows"
    	"syscall"
    )
    
    // WSASocket wraps [syscall.WSASocket].
    func (sw *Switch) WSASocket(family, sotype, proto int32, protinfo *syscall.WSAProtocolInfo, group uint32, flags uint32) (s syscall.Handle, err error) {
    	sw.once.Do(sw.init)
    
    	so := &Status{Cookie: cookie(int(family), int(sotype), int(proto))}
    	sw.fmu.RLock()
    	f, _ := sw.fltab[FilterSocket]
    	sw.fmu.RUnlock()
    
    	af, err := f.apply(so)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. src/net/sockaddr_posix.go

    	switch fd.family {
    	case syscall.AF_INET, syscall.AF_INET6:
    		switch fd.sotype {
    		case syscall.SOCK_STREAM:
    			return sockaddrToTCP
    		case syscall.SOCK_DGRAM:
    			return sockaddrToUDP
    		case syscall.SOCK_RAW:
    			return sockaddrToIP
    		}
    	case syscall.AF_UNIX:
    		switch fd.sotype {
    		case syscall.SOCK_STREAM:
    			return sockaddrToUnix
    		case syscall.SOCK_DGRAM:
    			return sockaddrToUnixgram
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ir/copy.go

    // (except for shared nodes like ONAME, ONONAME, OLITERAL, and OTYPE).
    // If pos.IsKnown(), it sets the source position of newly allocated Nodes to pos.
    func DeepCopy(pos src.XPos, n Node) Node {
    	var edit func(Node) Node
    	edit = func(x Node) Node {
    		switch x.Op() {
    		case ONAME, ONONAME, OLITERAL, ONIL, OTYPE:
    			return x
    		}
    		x = Copy(x)
    		if pos.IsKnown() {
    			x.SetPos(pos)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:57:57 UTC 2023
    - 1K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/platform/internal/ReadelfBinaryInfoTest.groovy

        46: 0000000000404050     0 NOTYPE  GLOBAL DEFAULT   25 __data_start
        47: 0000000000404198     0 NOTYPE  GLOBAL DEFAULT   26 _end
        48: 0000000000404060     0 NOTYPE  GLOBAL DEFAULT   26 __bss_start
        49: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND _ZNSt8ios_base4I[...]
        50: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND _ZNSolsEi@GLIBCXX_3.4
        51: 0000000000000000     0 NOTYPE  WEAK   DEFAULT  UND __gmon_start__
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 23:09:11 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  9. src/net/internal/socktest/sys_unix.go

    // Socket wraps [syscall.Socket].
    func (sw *Switch) Socket(family, sotype, proto int) (s int, err error) {
    	sw.once.Do(sw.init)
    
    	so := &Status{Cookie: cookie(family, sotype, proto)}
    	sw.fmu.RLock()
    	f := sw.fltab[FilterSocket]
    	sw.fmu.RUnlock()
    
    	af, err := f.apply(so)
    	if err != nil {
    		return -1, err
    	}
    	s, so.Err = syscall.Socket(family, sotype, proto)
    	if err = af.apply(so); err != nil {
    		if so.Err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 4K bytes
    - Viewed (0)
  10. src/reflect/export_test.go

    		for _, off := range offs {
    			typ := (*rtype)(resolveTypeOff(rodata, off))
    			r = append(r, typ.String())
    		}
    	}
    	return r
    }
    
    var GCBits = gcbits
    
    func gcbits(any) []byte // provided by runtime
    
    func MapBucketOf(x, y Type) Type {
    	return toType(bucketOf(x.common(), y.common()))
    }
    
    func CachedBucketOf(m Type) Type {
    	t := m.(*rtype)
    	if Kind(t.t.Kind_&abi.KindMask) != Map {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top