Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 127 for reachable (0.23 sec)

  1. src/go/types/check.go

    		return // nothing to do
    	}
    
    	for x, info := range check.untyped {
    		if debug && isTyped(info.typ) {
    			check.dump("%v: %s (type %s) is typed", x.Pos(), x, info.typ)
    			panic("unreachable")
    		}
    		check.recordTypeAndValue(x, info.mode, info.typ, info.val)
    	}
    }
    
    func (check *Checker) recordTypeAndValue(x ast.Expr, mode operandMode, typ Type, val constant.Value) {
    	assert(x != nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  2. src/crypto/rsa/rsa.go

    // be returned if the size of the salt is too large.
    var ErrMessageTooLong = errors.New("crypto/rsa: message too long for RSA key size")
    
    func encrypt(pub *PublicKey, plaintext []byte) ([]byte, error) {
    	boring.Unreachable()
    
    	N, err := bigmod.NewModulusFromBig(pub.N)
    	if err != nil {
    		return nil, err
    	}
    	m, err := bigmod.NewNat().SetBytes(plaintext, N)
    	if err != nil {
    		return nil, err
    	}
    	e := uint(pub.E)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  3. pilot/pkg/networking/util/util.go

    	return hcm.HttpConnectionManager_ForwardClientCertDetails(c - 1)
    }
    
    // ByteCount returns a human readable byte format
    // Inspired by https://yourbasic.org/golang/formatting-byte-size-to-human-readable-format/
    func ByteCount(b int) string {
    	const unit = 1000
    	if b < unit {
    		return fmt.Sprintf("%dB", b)
    	}
    	div, exp := int64(unit), 0
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/check.go

    		return // nothing to do
    	}
    
    	for x, info := range check.untyped {
    		if debug && isTyped(info.typ) {
    			check.dump("%v: %s (type %s) is typed", atPos(x), x, info.typ)
    			panic("unreachable")
    		}
    		check.recordTypeAndValue(x, info.mode, info.typ, info.val)
    	}
    }
    
    func (check *Checker) recordTypeAndValue(x syntax.Expr, mode operandMode, typ Type, val constant.Value) {
    	assert(x != nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/operand.go

    		kind = UntypedFloat
    	case syntax.ImagLit:
    		kind = UntypedComplex
    	case syntax.RuneLit:
    		kind = UntypedRune
    	case syntax.StringLit:
    		kind = UntypedString
    	default:
    		panic("unreachable")
    	}
    
    	val := makeFromLiteral(lit, k)
    	if val.Kind() == constant.Unknown {
    		x.mode = invalid
    		x.typ = Typ[Invalid]
    		return
    	}
    	x.mode = constant_
    	x.typ = Typ[kind]
    	x.val = val
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. src/go/types/subst.go

    			// help with debugging.
    			return subst.check.instance(subst.pos, orig, targs, subst.expanding, subst.ctxt)
    		}
    
    	case *TypeParam:
    		return subst.smap.lookup(t)
    
    	default:
    		panic("unreachable")
    	}
    
    	return typ
    }
    
    // typOrNil is like typ but if the argument is nil it is replaced with Typ[Invalid].
    // A nil type may appear in pathological cases such as type T[P any] []func(_ T([]_))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  7. src/runtime/iface.go

    	0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff,
    }
    
    // The linker redirects a reference of a method that it determined
    // unreachable to a reference to this function, so it will throw if
    // ever called.
    func unreachableMethod() {
    	throw("unreachable method called. linker bug?")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/subst.go

    			// help with debugging.
    			return subst.check.instance(subst.pos, orig, targs, subst.expanding, subst.ctxt)
    		}
    
    	case *TypeParam:
    		return subst.smap.lookup(t)
    
    	default:
    		panic("unreachable")
    	}
    
    	return typ
    }
    
    // typOrNil is like typ but if the argument is nil it is replaced with Typ[Invalid].
    // A nil type may appear in pathological cases such as type T[P any] []func(_ T([]_))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. src/runtime/chan.go

    func chansend(c *hchan, ep unsafe.Pointer, block bool, callerpc uintptr) bool {
    	if c == nil {
    		if !block {
    			return false
    		}
    		gopark(nil, nil, waitReasonChanSendNilChan, traceBlockForever, 2)
    		throw("unreachable")
    	}
    
    	if debugChan {
    		print("chansend: chan=", c, "\n")
    	}
    
    	if raceenabled {
    		racereadpc(c.raceaddr(), callerpc, abi.FuncPCABIInternal(chansend))
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  10. src/crypto/tls/handshake_test.go

    				}
    				t.Logf("localPipe: unexpected connection: %v != %v", c2.RemoteAddr(), c1.LocalAddr())
    				c2.Close()
    			}
    		}
    	}
    
    	t.Fatalf("localPipe: failed to connect: %v", err)
    	panic("unreachable")
    }
    
    // zeroSource is an io.Reader that returns an unlimited number of zero bytes.
    type zeroSource struct{}
    
    func (zeroSource) Read(b []byte) (n int, err error) {
    	clear(b)
    	return len(b), nil
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 24.5K bytes
    - Viewed (0)
Back to top