Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 370 for biglen (0.15 sec)

  1. test/fixedbugs/bug273.go

    	g4 = make(chan cblock, big)
    }
    
    func overflowchan() {
    	const ptrSize = unsafe.Sizeof(uintptr(0))
    	g4 = make(chan cblock, 1<<(30*(ptrSize/4)))
    }
    
    func main() {
    	shouldfail(badlen, "badlen")
    	shouldfail(biglen, "biglen")
    	shouldfail(badcap, "badcap")
    	shouldfail(badcap1, "badcap1")
    	shouldfail(bigcap, "bigcap")
    	shouldfail(badchancap, "badchancap")
    	shouldfail(bigchancap, "bigchancap")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 26 14:06:28 UTC 2018
    - 1.3K bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/bigger-applications.md

    * Und die Datei `app/internal/admin.py` ist ein weiteres Submodul: `app.internal.admin`.
    
    <img src="/img/tutorial/bigger-applications/package.svg">
    
    Die gleiche Dateistruktur mit Kommentaren:
    
    ```
    .
    ├── app                  # „app“ ist ein Python-Package
    │   ├── __init__.py      # diese Datei macht „app“ zu einem „Python-Package“
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 20:27:59 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/bigger-applications.md

    # Bigger Applications - Multiple Files
    
    If you are building an application or a web API, it's rarely the case that you can put everything on a single file.
    
    **FastAPI** provides a convenience tool to structure your application while keeping all the flexibility.
    
    !!! info
        If you come from Flask, this would be the equivalent of Flask's Blueprints.
    
    ## An example file structure
    
    Let's say you have a file structure like this:
    
    ```
    .
    ├── app
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  4. docs/em/docs/tutorial/bigger-applications.md

    * 📤 📁 `app/internal/` ⏮️ ➕1️⃣ 📁 `__init__.py`, ⚫️ ➕1️⃣ "🐍 📦": `app.internal`.
    *  &amp; 📁 `app/internal/admin.py` ➕1️⃣ 🔁: `app.internal.admin`.
    
    <img src="/img/tutorial/bigger-applications/package.svg">
    
    🎏 📁 📊 ⏮️ 🏤:
    
    ```
    .
    ├── app                  # "app" is a Python package
    │   ├── __init__.py      # this file makes "app" a "Python package"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  5. docs/zh/docs/tutorial/bigger-applications.md

    * 还有一个子目录 `app/internal/` 包含另一个 `__init__.py` 文件,因此它是又一个「Python 子包」:`app.internal`。
    * `app/internal/admin.py` 是另一个子模块:`app.internal.admin`。
    
    <img src="https://fastapi.tiangolo.com/img/tutorial/bigger-applications/package.svg">
    
    带有注释的同一文件结构:
    
    ```
    .
    ├── app                  # 「app」是一个 Python 包
    │   ├── __init__.py      # 这个文件使「app」成为一个 Python 包
    │   ├── main.py          # 「main」模块,例如 import app.main
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  6. src/crypto/rsa/rsa.go

    			if err != nil {
    				return nil, err
    			}
    			todo -= primes[i].BitLen()
    		}
    
    		// Make sure that primes is pairwise unequal.
    		for i, prime := range primes {
    			for j := 0; j < i; j++ {
    				if prime.Cmp(primes[j]) == 0 {
    					continue NextSetOfPrimes
    				}
    			}
    		}
    
    		n := new(big.Int).Set(bigOne)
    		totient := new(big.Int).Set(bigOne)
    		pminus1 := new(big.Int)
    		for _, prime := range primes {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  7. src/crypto/dsa/dsa.go

    				return err
    			}
    
    			pBytes[len(pBytes)-1] |= 1
    			pBytes[0] |= 0x80
    
    			p.SetBytes(pBytes)
    			rem.Mod(p, q)
    			rem.Sub(rem, one)
    			p.Sub(p, rem)
    			if p.BitLen() < L {
    				continue
    			}
    
    			if !p.ProbablyPrime(numMRTests) {
    				continue
    			}
    
    			params.P = p
    			params.Q = q
    			break GeneratePrimes
    		}
    	}
    
    	h := new(big.Int)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  8. src/net/netip/netip.go

    	var val, pos int
    	var digLen int // number of digits in current octet
    	s := in[off:end]
    	for i := 0; i < len(s); i++ {
    		if s[i] >= '0' && s[i] <= '9' {
    			if digLen == 1 && val == 0 {
    				return parseAddrError{in: in, msg: "IPv4 field has octet with leading zero"}
    			}
    			val = val*10 + int(s[i]) - '0'
    			digLen++
    			if val > 255 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  9. src/crypto/rand/util.go

    	}
    	n = new(big.Int)
    	n.Sub(max, n.SetUint64(1))
    	// bitLen is the maximum bit length needed to encode a value < max.
    	bitLen := n.BitLen()
    	if bitLen == 0 {
    		// the only valid result is 0
    		return
    	}
    	// k is the maximum byte length needed to encode a value < max.
    	k := (bitLen + 7) / 8
    	// b is the number of bits in the most significant byte of max-1.
    	b := uint(bitLen % 8)
    	if b == 0 {
    		b = 8
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  10. src/crypto/dsa/dsa_test.go

    	if err != nil {
    		t.Errorf("%d: %s", int(sizes), err)
    		return
    	}
    
    	if params.P.BitLen() != L {
    		t.Errorf("%d: params.BitLen got:%d want:%d", int(sizes), params.P.BitLen(), L)
    	}
    
    	if params.Q.BitLen() != N {
    		t.Errorf("%d: q.BitLen got:%d want:%d", int(sizes), params.Q.BitLen(), L)
    	}
    
    	one := new(big.Int)
    	one.SetInt64(1)
    	pm1 := new(big.Int).Sub(params.P, one)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 15 21:04:43 UTC 2019
    - 4.7K bytes
    - Viewed (0)
Back to top