Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 86 for biglen (0.13 sec)

  1. src/encoding/asn1/marshal.go

    		// most-significant-bit isn't set then we'll need to pad the
    		// beginning with 0xff in order to keep the number negative.
    		nMinus1 := new(big.Int).Neg(n)
    		nMinus1.Sub(nMinus1, bigOne)
    		bytes := nMinus1.Bytes()
    		for i := range bytes {
    			bytes[i] ^= 0xff
    		}
    		if len(bytes) == 0 || bytes[0]&0x80 == 0 {
    			return multiEncoder([]encoder{byteFFEncoder, bytesEncoder(bytes)}), nil
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  2. internal/s3select/select.go

    		}
    		return start, -1, nil
    	}
    	if s.Start == nil {
    		// Suffix length
    		end := int64(*s.End)
    		if end < 0 {
    			return 0, 0, errors.New("ScanRange: End bigger than file")
    		}
    		// Suffix length
    		return -end, -1, nil
    	}
    	start = int64(*s.Start)
    	end := int64(*s.End)
    	return start, end - start + 1, nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 21K bytes
    - Viewed (0)
  3. src/crypto/tls/handshake_server_tls13.go

    	if err != nil {
    		public := hs.cert.PrivateKey.(crypto.Signer).Public()
    		if rsaKey, ok := public.(*rsa.PublicKey); ok && sigType == signatureRSAPSS &&
    			rsaKey.N.BitLen()/8 < sigHash.Size()*2+2 { // key too small for RSA-PSS
    			c.sendAlert(alertHandshakeFailure)
    		} else {
    			c.sendAlert(alertInternalError)
    		}
    		return errors.New("tls: failed to sign handshake: " + err.Error())
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:23:54 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  4. pilot/pkg/networking/util/util.go

    	}
    
    	// Otherwise it is a raw IP. Make it a /32 or /128 depending on family
    	ipa, err := netip.ParseAddr(addr)
    	if err != nil {
    		return netip.Prefix{}, err
    	}
    
    	return netip.PrefixFrom(ipa, ipa.BitLen()), nil
    }
    
    // AddrStrToCidrRange converts from string to CIDR proto
    func AddrStrToCidrRange(addr string) (*core.CidrRange, error) {
    	prefix, err := AddrStrToPrefix(addr)
    	if err != nil {
    		return nil, err
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  5. src/runtime/stack.go

    			throw("out of memory (stackalloc)")
    		}
    		return stack{uintptr(v), uintptr(v) + uintptr(n)}
    	}
    
    	// Small stacks are allocated with a fixed-size free-list allocator.
    	// If we need a stack of a bigger size, we fall back on allocating
    	// a dedicated span.
    	var v unsafe.Pointer
    	if n < fixedStack<<_NumStackOrders && n < _StackCacheSize {
    		order := uint8(0)
    		n2 := n
    		for n2 > fixedStack {
    			order++
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  6. src/reflect/value.go

    }
    
    func (v Value) bytesSlow() []byte {
    	switch v.kind() {
    	case Slice:
    		if v.typ().Elem().Kind() != abi.Uint8 {
    			panic("reflect.Value.Bytes of non-byte slice")
    		}
    		// Slice is always bigger than a word; assume flagIndir.
    		return *(*[]byte)(v.ptr)
    	case Array:
    		if v.typ().Elem().Kind() != abi.Uint8 {
    			panic("reflect.Value.Bytes of non-byte array")
    		}
    		if !v.CanAddr() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  7. src/cmd/go/internal/work/exec.go

    	cleanup = func() {} // no cleanup by default
    
    	var argLen int
    	for _, arg := range cmd.Args {
    		argLen += len(arg)
    	}
    
    	// If we're not approaching 32KB of args, just pass args normally.
    	// (use 30KB instead to be conservative; not sure how accounting is done)
    	if !useResponseFile(cmd.Path, argLen) {
    		return
    	}
    
    	tf, err := os.CreateTemp("", "args")
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/preemption/preemption.go

    			if earliestStartTimeOnNode == nil {
    				logger.Error(errors.New("earliestStartTime is nil for node"), "Should not reach here", "node", node)
    				return int64(math.MinInt64)
    			}
    			// The bigger the earliestStartTimeOnNode, the higher the score.
    			return earliestStartTimeOnNode.UnixNano()
    		}
    
    		// Each scoreFunc scores the nodes according to specific rules and keeps the name of the node
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  9. docs/en/docs/release-notes.md

        * <a href="https://fastapi.tiangolo.com/tutorial/bigger-applications/" class="external-link" target="_blank">Tutorial - Bigger Applications</a>.
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 14 15:07:37 UTC 2024
    - 395.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go

    	if base == 10 {
    		amount.SetScale(amount.Scale() + Scale(exponent).infScale())
    	} else if base == 2 {
    		// numericSuffix = 2 ** exponent
    		numericSuffix := big.NewInt(1).Lsh(bigOne, uint(exponent))
    		ub := amount.UnscaledBig()
    		amount.SetUnscaledBig(ub.Mul(ub, numericSuffix))
    	}
    
    	// Cap at min/max bounds.
    	sign := amount.Sign()
    	if sign == -1 {
    		amount.Neg(amount)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 23.8K bytes
    - Viewed (0)
Back to top