Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 126 for biglen (0.3 sec)

  1. src/net/netip/netip_pkg_test.go

    		{mustIP("10.0.0.1"), 32},
    		{mustIP("::"), 128},
    		{mustIP("fed0::1"), 128},
    		{mustIP("::ffff:10.0.0.1"), 128},
    	}
    	for _, tt := range tests {
    		got := tt.ip.BitLen()
    		if got != tt.want {
    			t.Errorf("BitLen(%v) = %d; want %d", tt.ip, got, tt.want)
    		}
    	}
    }
    
    func TestPrefixContains(t *testing.T) {
    	tests := []struct {
    		ipp  Prefix
    		ip   Addr
    		want bool
    	}{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 02 15:37:19 UTC 2023
    - 9K bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/dependencies/global-dependencies.md

    ## Зависимости для групп *операций пути*
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 17 05:59:11 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/dependencies/global-dependencies.md

    ```
    
    [*路径装饰器依赖项*](dependencies-in-path-operation-decorators.md){.internal-link target=_blank} 一章的思路均适用于全局依赖项, 在本例中,这些依赖项可以用于应用中的所有*路径操作*。
    
    ## 为一组路径操作定义依赖项
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu May 12 00:06:16 UTC 2022
    - 958 bytes
    - Viewed (0)
  4. internal/grid/grid.go

    	// maxBufferSize is the maximum buffer size.
    	// Buffers larger than this is not reused.
    	maxBufferSize = 96 << 10
    
    	// This is the assumed size of bigger buffers and allocation size.
    	biggerBufMin = 32 << 10
    
    	// This is the maximum size of bigger buffers.
    	biggerBufMax = maxBufferSize
    
    	// If there is a queue, merge up to this many messages.
    	maxMergeMessages = 30
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Apr 02 15:56:18 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. docs/ja/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    つまり、すでにどこかで使っている通常の依存関係(値を返すもの)を再利用することができ、値は使われなくても依存関係は実行されます:
    
    ```Python hl_lines="9 14"
    {!../../../docs_src/dependencies/tutorial006.py!}
    ```
    
    ## *path operations*のグループに対する依存関係
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Jan 15 16:44:28 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. src/crypto/x509/boring_test.go

    	} else {
    		pcert = tmpl
    		pkey = key
    	}
    
    	var pub interface{}
    	var desc string
    	switch k := key.(type) {
    	case *rsa.PrivateKey:
    		pub = &k.PublicKey
    		desc = fmt.Sprintf("RSA-%d", k.N.BitLen())
    	case *ecdsa.PrivateKey:
    		pub = &k.PublicKey
    		desc = "ECDSA-" + k.Curve.Params().Name
    	default:
    		t.Fatalf("invalid key %T", key)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 17 17:38:47 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  7. test/asmhdr.dir/main.go

    	// For bigInt, we use a value that's too big for an int64, but still
    	// fits in uint64. go/constant uses a different representation for
    	// values larger than int64, but the cmd/asm parser can't parse
    	// anything bigger than a uint64.
    	bigInt = 0xffffffffffffffff
    
    	stringVal = "test"
    
    	longStringVal = "this_is_a_string_constant_longer_than_seventy_characters_which_used_to_fail_see_issue_50253"
    )
    
    var (
    	smallIntAsm   int64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 10 21:27:19 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/async-tests.md

    ## Example
    
    For a simple example, let's consider a file structure similar to the one described in [Bigger Applications](../tutorial/bigger-applications.md){.internal-link target=_blank} and [Testing](../tutorial/testing.md){.internal-link target=_blank}:
    
    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Jan 13 12:07:15 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. src/io/example_test.go

    	fmt.Printf("%s\n", buf)
    
    	// buffer smaller than minimal read size.
    	shortBuf := make([]byte, 3)
    	if _, err := io.ReadAtLeast(r, shortBuf, 4); err != nil {
    		fmt.Println("error:", err)
    	}
    
    	// minimal read size bigger than io.Reader stream
    	longBuf := make([]byte, 64)
    	if _, err := io.ReadAtLeast(r, longBuf, 64); err != nil {
    		fmt.Println("error:", err)
    	}
    
    	// Output:
    	// some io.Reader
    	// error: short buffer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:49:32 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/api/resource/amount.go

    	amount := big.NewInt(0).Set(mantissa)
    	// move all factors of 10 into the exponent for easy reasoning
    	amount, times := removeBigIntFactors(amount, bigTen)
    	exponent += times
    
    	// make sure exponent is a multiple of 3
    	for exponent%3 != 0 {
    		amount.Mul(amount, bigTen)
    		exponent--
    	}
    
    	return append(out, amount.String()...), exponent
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 13 19:42:28 UTC 2023
    - 9.3K bytes
    - Viewed (0)
Back to top