Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for b64 (0.41 sec)

  1. maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraphVertex.java

            if (compareScope) {
                hashString.append(md.getArtifactScope()).append('|');
            }
    
            return hashString.toString().hashCode();
    
            // BASE64Encoder b64 = new BASE64Encoder();
            // return b64.encode( hashString.toString().getBytes() ).hashCode();
        }
    
        // ---------------------------------------------------------------------
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 11:28:54 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  2. src/cmd/internal/buildid/buildid.go

    func HashToString(h [32]byte) string {
    	const b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
    	const chunks = 5
    	var dst [chunks * 4]byte
    	for i := 0; i < chunks; i++ {
    		v := uint32(h[3*i])<<16 | uint32(h[3*i+1])<<8 | uint32(h[3*i+2])
    		dst[4*i+0] = b64[(v>>18)&0x3F]
    		dst[4*i+1] = b64[(v>>12)&0x3F]
    		dst[4*i+2] = b64[(v>>6)&0x3F]
    		dst[4*i+3] = b64[v&0x3F]
    	}
    	return string(dst[:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 28 21:52:53 UTC 2020
    - 9K bytes
    - Viewed (0)
  3. src/strconv/example_test.go

    	// bool:true
    }
    
    func ExampleAppendFloat() {
    	b32 := []byte("float32:")
    	b32 = strconv.AppendFloat(b32, 3.1415926535, 'E', -1, 32)
    	fmt.Println(string(b32))
    
    	b64 := []byte("float64:")
    	b64 = strconv.AppendFloat(b64, 3.1415926535, 'E', -1, 64)
    	fmt.Println(string(b64))
    
    	// Output:
    	// float32:3.1415927E+00
    	// float64:3.1415926535E+00
    }
    
    func ExampleAppendInt() {
    	b10 := []byte("int (base 10):")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 22:57:37 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  4. src/encoding/pem/pem.go

    			}
    		}
    		if _, err := out.Write(nl); err != nil {
    			return err
    		}
    	}
    
    	var breaker lineBreaker
    	breaker.out = out
    
    	b64 := base64.NewEncoder(base64.StdEncoding, &breaker)
    	if _, err := b64.Write(b.Bytes); err != nil {
    		return err
    	}
    	b64.Close()
    	breaker.Close()
    
    	if _, err := out.Write(pemEnd[1:]); err != nil {
    		return err
    	}
    	_, err := out.Write([]byte(b.Type + "-----\n"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/mod/sumdb/note/note.go

    		sigs = sigs[i+1:]
    
    		if !bytes.HasPrefix(line, sigPrefix) {
    			return nil, errMalformedNote
    		}
    		line = line[len(sigPrefix):]
    		name, b64 := chop(string(line), " ")
    		sig, err := base64.StdEncoding.DecodeString(b64)
    		if err != nil || !isValidName(name) || b64 == "" || len(sig) < 5 {
    			return nil, errMalformedNote
    		}
    		hash := binary.BigEndian.Uint32(sig[0:4])
    		sig = sig[4:]
    
    		if numSig++; numSig > 100 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 12 20:38:21 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  6. src/net/http/pprof/pprof_test.go

    	if err != nil {
    		t.Fatalf("error running profile collection: %v\noutput: %s", err, out)
    	}
    
    	// Log the binary output for debugging failures.
    	b64 := make([]byte, base64.StdEncoding.EncodedLen(len(out)))
    	base64.StdEncoding.Encode(b64, out)
    	t.Logf("Output in base64.StdEncoding: %s", b64)
    
    	p, err := profile.Parse(bytes.NewReader(out))
    	if err != nil {
    		t.Fatalf("Parse got err %v want nil", err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 07 19:52:28 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  7. test/mergemul.go

    import "fmt"
    
    var n8 int8 = 42
    var n16 int16 = 42
    var n32 int32 = 42
    var n64 int64 = 42
    
    func main() {
        var a8, b8 int8
        var a16, b16 int16
        var a32, b32 int32
        var a64, b64 int64
    `)
    
    	fmt.Println(makeAllSizes(03, 05, 0)) // 3*n + 5*n
    	fmt.Println(makeAllSizes(17, 33, 0))
    	fmt.Println(makeAllSizes(80, 45, 0))
    	fmt.Println(makeAllSizes(32, 64, 0))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Sep 03 14:29:38 UTC 2017
    - 3.2K bytes
    - Viewed (0)
  8. internal/etag/etag_test.go

    	{Header: http.Header{"Content-Md5": []string{"d41d8cd98f00b204e9800998ecf8427e"}}, ShouldFail: true}, // 7 (content-md5 is invalid b64 / of invalid length)
    }
    
    func TestFromContentMD5(t *testing.T) {
    	for i, test := range fromContentMD5Tests {
    		ETag, err := FromContentMD5(test.Header)
    		if err != nil && !test.ShouldFail {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  9. src/math/bits/bits.go

    func Sub(x, y, borrow uint) (diff, borrowOut uint) {
    	if UintSize == 32 {
    		d32, b32 := Sub32(uint32(x), uint32(y), uint32(borrow))
    		return uint(d32), uint(b32)
    	}
    	d64, b64 := Sub64(uint64(x), uint64(y), uint64(borrow))
    	return uint(d64), uint(b64)
    }
    
    // Sub32 returns the difference of x, y and borrow, diff = x - y - borrow.
    // The borrow input must be 0 or 1; otherwise the behavior is undefined.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  10. cmd/erasure-multipart.go

    			var modTime time.Time
    			// Upload IDs are of the form base64_url(<UUID>x<UnixNano>), we can extract the time from the UUID.
    			if b64, err := base64.RawURLEncoding.DecodeString(uploadIDDir); err == nil {
    				if split := strings.Split(string(b64), "x"); len(split) == 2 {
    					t, err := strconv.ParseInt(split[1], 10, 64)
    					if err == nil {
    						modTime = time.Unix(0, t)
    					}
    				}
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 44.8K bytes
    - Viewed (0)
Back to top