Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 338 for setTypes (0.15 sec)

  1. src/crypto/internal/edwards25519/field/fe_test.go

    	}
    }
    
    func TestSetBytesRoundTrip(t *testing.T) {
    	f1 := func(in [32]byte, fe Element) bool {
    		fe.SetBytes(in[:])
    
    		// Mask the most significant bit as it's ignored by SetBytes. (Now
    		// instead of earlier so we check the masking in SetBytes is working.)
    		in[len(in)-1] &= (1 << 7) - 1
    
    		return bytes.Equal(in[:], fe.Bytes()) && isInBounds(&fe)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:26:17 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  2. cmd/site-replication-utils_gen_test.go

    	bts := make([]byte, 0, v.Msgsize())
    	bts, _ = v.MarshalMsg(bts[0:0])
    	b.SetBytes(int64(len(bts)))
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		bts, _ = v.MarshalMsg(bts[0:0])
    	}
    }
    
    func BenchmarkUnmarshalSiteResyncStatus(b *testing.B) {
    	v := SiteResyncStatus{}
    	bts, _ := v.MarshalMsg(nil)
    	b.ReportAllocs()
    	b.SetBytes(int64(len(bts)))
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Nov 14 15:16:40 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  3. cmd/metacache-set_gen_test.go

    	bts := make([]byte, 0, v.Msgsize())
    	bts, _ = v.MarshalMsg(bts[0:0])
    	b.SetBytes(int64(len(bts)))
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		bts, _ = v.MarshalMsg(bts[0:0])
    	}
    }
    
    func BenchmarkUnmarshallistPathOptions(b *testing.B) {
    	v := listPathOptions{}
    	bts, _ := v.MarshalMsg(nil)
    	b.ReportAllocs()
    	b.SetBytes(int64(len(bts)))
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. cmd/metacache-walk_gen_test.go

    	bts := make([]byte, 0, v.Msgsize())
    	bts, _ = v.MarshalMsg(bts[0:0])
    	b.SetBytes(int64(len(bts)))
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		bts, _ = v.MarshalMsg(bts[0:0])
    	}
    }
    
    func BenchmarkUnmarshalWalkDirOptions(b *testing.B) {
    	v := WalkDirOptions{}
    	bts, _ := v.MarshalMsg(nil)
    	b.ReportAllocs()
    	b.SetBytes(int64(len(bts)))
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  5. cmd/bootstrap-peer-server_gen_test.go

    	bts := make([]byte, 0, v.Msgsize())
    	bts, _ = v.MarshalMsg(bts[0:0])
    	b.SetBytes(int64(len(bts)))
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		bts, _ = v.MarshalMsg(bts[0:0])
    	}
    }
    
    func BenchmarkUnmarshalServerSystemConfig(b *testing.B) {
    	v := ServerSystemConfig{}
    	bts, _ := v.MarshalMsg(nil)
    	b.ReportAllocs()
    	b.SetBytes(int64(len(bts)))
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jan 24 21:36:44 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. cmd/storage-datatypes_test.go

    		Name:    "uuid",
    		Created: time.Now(),
    	}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    	rd := msgp.NewEndlessReader(buf.Bytes(), b)
    	dc := msgp.NewReader(rd)
    	b.Log("Size:", buf.Len(), "bytes")
    	b.SetBytes(1)
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		err := v.DecodeMsg(dc)
    		if err != nil {
    			b.Fatal(err)
    		}
    	}
    }
    
    func BenchmarkDecodeDiskInfoMsgp(b *testing.B) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 9.4K bytes
    - Viewed (0)
  7. internal/config/identity/openid/jwks.go

    			return nil, errMalformedJWKRSAKey
    		}
    
    		nbuf, err := base64.RawURLEncoding.DecodeString(key.N)
    		if err != nil {
    			return nil, errMalformedJWKRSAKey
    		}
    
    		var n, e big.Int
    		n.SetBytes(nbuf)
    		e.SetBytes(ebuf)
    
    		return &rsa.PublicKey{
    			E: int(e.Int64()),
    			N: &n,
    		}, nil
    	case "EC":
    		if key.Crv == "" || key.X == "" || key.Y == "" {
    			return nil, errMalformedJWKECKey
    		}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Apr 02 23:02:35 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  8. pkg/proxy/ipvs/ipset/ipset.go

    	args := []string{"create", set.Name, string(set.SetType)}
    	if set.SetType == HashIPPortIP || set.SetType == HashIPPort || set.SetType == HashIPPortNet || set.SetType == HashIP {
    		args = append(args,
    			"family", set.HashFamily,
    			"hashsize", strconv.Itoa(set.HashSize),
    			"maxelem", strconv.Itoa(set.MaxElem),
    		)
    	}
    	if set.SetType == BitmapPort {
    		args = append(args, "range", set.PortRange)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/data.go

    	types.SetType(sym.STYPE)
    	types.SetSize(8)
    	ldr.SetAttrSpecial(types.Sym(), false)
    
    	etypes := ldr.CreateSymForUpdate("runtime.etypes", 0)
    	etypes.SetType(sym.SFUNCTAB)
    	ldr.SetAttrSpecial(etypes.Sym(), false)
    
    	if ctxt.HeadType == objabi.Haix {
    		rodata := ldr.CreateSymForUpdate("runtime.rodata", 0)
    		rodata.SetType(sym.SSTRING)
    		rodata.SetSize(8)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (1)
  10. src/crypto/internal/bigmod/nat_test.go

    	return n.Bytes(maxModulus(uint(len(n.limbs))))
    }
    
    func natFromBytes(b []byte) *Nat {
    	// Must not use Nat.SetBytes as it's used in TestSetBytes.
    	bb := new(big.Int).SetBytes(b)
    	return NewNat().setBig(bb)
    }
    
    func modulusFromBytes(b []byte) *Modulus {
    	bb := new(big.Int).SetBytes(b)
    	m, _ := NewModulusFromBig(bb)
    	return m
    }
    
    // maxModulus returns the biggest modulus that can fit in n limbs.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 12 00:56:20 UTC 2024
    - 11.6K bytes
    - Viewed (0)
Back to top