Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for GetBytes (0.11 sec)

  1. src/cmd/go/internal/work/exec.go

    			return
    		}
    	}
    	cache.PutBytes(c, cache.Subkey(a.actionID, "srcfiles"), buf.Bytes())
    }
    
    func (b *Builder) loadCachedVet(a *Action) error {
    	c := cache.Default()
    	list, _, err := cache.GetBytes(c, cache.Subkey(a.actionID, "srcfiles"))
    	if err != nil {
    		return fmt.Errorf("reading srcfiles list: %w", err)
    	}
    	var srcfiles []string
    	for _, name := range strings.Split(string(list), "\n") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  2. src/crypto/x509/x509_test.go

    		Subject:   pkix.Name{CommonName: "Cert"},
    		NotBefore: time.Unix(1000, 0),
    		NotAfter:  time.Unix(100000, 0),
    	}
    	for _, serial := range []*big.Int{
    		big.NewInt(0).SetBytes(bytes.Repeat([]byte{5}, 21)),
    		big.NewInt(0).SetBytes(bytes.Repeat([]byte{255}, 20)),
    	} {
    		template.SerialNumber = serial
    		certDER, err := CreateCertificate(rand.Reader, &template, &template, rsaPrivateKey.Public(), rsaPrivateKey)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 163.4K bytes
    - Viewed (0)
  3. src/reflect/value.go

    	v.mustBe(Bool)
    	*(*bool)(v.ptr) = x
    }
    
    // SetBytes sets v's underlying value.
    // It panics if v's underlying value is not a slice of bytes.
    func (v Value) SetBytes(x []byte) {
    	v.mustBeAssignable()
    	v.mustBe(Slice)
    	if toRType(v.typ()).Elem().Kind() != Uint8 { // TODO add Elem method, fix mustBe(Slice) to return slice.
    		panic("reflect.Value.SetBytes of non-byte slice")
    	}
    	*(*[]byte)(v.ptr) = x
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  4. src/crypto/sha512/sha512_test.go

    	sum := make([]byte, bench.Size())
    	b.Run("New", func(b *testing.B) {
    		b.ReportAllocs()
    		b.SetBytes(int64(size))
    		for i := 0; i < b.N; i++ {
    			bench.Reset()
    			bench.Write(buf[:size])
    			bench.Sum(sum[:0])
    		}
    	})
    	b.Run("Sum384", func(b *testing.B) {
    		b.ReportAllocs()
    		b.SetBytes(int64(size))
    		for i := 0; i < b.N; i++ {
    			Sum384(buf[:size])
    		}
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 21:17:08 UTC 2023
    - 105.6K bytes
    - Viewed (0)
  5. src/reflect/all_test.go

    	shouldPanic("call of reflect.Value.SetBool on string Value", func() { vo(new(string)).Elem().SetBool(false) })
    	shouldPanic("reflect.Value.SetBytes using unaddressable value", func() { vo("").SetBytes(nil) })
    	shouldPanic("call of reflect.Value.SetCap on string Value", func() { vo(new(string)).Elem().SetCap(0) })
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top