Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 163 for setTypes (0.2 sec)

  1. 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)
  2. cmd/bucket-metadata_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 BenchmarkUnmarshalBucketMetadata(b *testing.B) {
    	v := BucketMetadata{}
    	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: Fri Apr 23 18:58:53 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. cmd/background-newdisks-heal-ops_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 BenchmarkUnmarshalhealingTracker(b *testing.B) {
    	v := healingTracker{}
    	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: Fri Apr 23 18:58:53 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  6. src/crypto/cipher/benchmark_test.go

    	buf := make([]byte, 1024)
    	b.SetBytes(int64(len(buf)))
    
    	var key [16]byte
    	var iv [16]byte
    	aes, _ := aes.NewCipher(key[:])
    	cbc := cipher.NewCBCEncrypter(aes, iv[:])
    	for i := 0; i < b.N; i++ {
    		cbc.CryptBlocks(buf, buf)
    	}
    }
    
    func BenchmarkAESCBCDecrypt1K(b *testing.B) {
    	buf := make([]byte, 1024)
    	b.SetBytes(int64(len(buf)))
    
    	var key [16]byte
    	var iv [16]byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 28 19:13:50 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/typelink.go

    	sort.Sort(typelinks)
    
    	tl := ldr.CreateSymForUpdate("runtime.typelink", 0)
    	tl.SetType(sym.STYPELINK)
    	ldr.SetAttrLocal(tl.Sym(), true)
    	tl.SetSize(int64(4 * len(typelinks)))
    	tl.Grow(tl.Size())
    	relocs := tl.AddRelocs(len(typelinks))
    	for i, s := range typelinks {
    		r := relocs.At(i)
    		r.SetSym(s.Type)
    		r.SetOff(int32(i * 4))
    		r.SetSiz(4)
    		r.SetType(objabi.R_ADDROFF)
    	}
    
    	ptrsize := ctxt.Arch.PtrSize
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 03 21:13:25 UTC 2020
    - 1.9K bytes
    - Viewed (0)
  8. src/crypto/internal/nistec/fiat/p384.go

    	p384InvertEndianness(out[:])
    	return out[:]
    }
    
    // SetBytes sets e = v, where v is a big-endian 48-byte encoding, and returns e.
    // If v is not 48 bytes or it encodes a value higher than 2^384 - 2^128 - 2^96 + 2^32 - 1,
    // SetBytes returns nil and an error, and e is unchanged.
    func (e *P384Element) SetBytes(v []byte) (*P384Element, error) {
    	if len(v) != p384ElementLen {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  9. src/crypto/internal/nistec/fiat/p521.go

    	p521ToBytes(out, (*p521UntypedFieldElement)(&tmp))
    	p521InvertEndianness(out[:])
    	return out[:]
    }
    
    // SetBytes sets e = v, where v is a big-endian 66-byte encoding, and returns e.
    // If v is not 66 bytes or it encodes a value higher than 2^521 - 1,
    // SetBytes returns nil and an error, and e is unchanged.
    func (e *P521Element) SetBytes(v []byte) (*P521Element, error) {
    	if len(v) != p521ElementLen {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  10. src/crypto/internal/nistec/fiat/p224.go

    	p224ToBytes(out, (*p224UntypedFieldElement)(&tmp))
    	p224InvertEndianness(out[:])
    	return out[:]
    }
    
    // SetBytes sets e = v, where v is a big-endian 28-byte encoding, and returns e.
    // If v is not 28 bytes or it encodes a value higher than 2^224 - 2^96 + 1,
    // SetBytes returns nil and an error, and e is unchanged.
    func (e *P224Element) SetBytes(v []byte) (*P224Element, error) {
    	if len(v) != p224ElementLen {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 3.6K bytes
    - Viewed (0)
Back to top