Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 37 for GetBytes (0.13 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/resolver/ExternalResourceResolver.java

            HashCode hash = checksumService.hash(src, algorithm);
            String formattedHashString = hash.toString();
            try {
                return formattedHashString.getBytes("US-ASCII");
            } catch (UnsupportedEncodingException e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    
        public List<String> getIvyPatterns() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 00:21:07 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildOptionsIntegrationTest.groovy

                        for(File f: getMyInputs().files) {
                            outputContent += f.canonicalPath + "\\n"
                        }
                        Files.write(outputFile.toPath(), outputContent.getBytes())
                    }
                }
    
                tasks.register("myTask", MyTask.class) {
                    it.getInputCount().set(project.providers.systemProperty("generateInputs").map { Integer.parseInt(it) })
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 28K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

          throw closer.rethrow(e);
        } finally {
          closer.close();
        }
      }
    
      private static Manifest manifest(String content) throws IOException {
        InputStream in = new ByteArrayInputStream(content.getBytes(US_ASCII));
        Manifest manifest = new Manifest();
        manifest.read(in);
        return manifest;
      }
    
      private static File fullpath(String path) {
        return new File(new File(path).toURI());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Apr 26 14:02:27 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/docs/userguide/authoring-builds/basics/plugins.adoc

            classpath 'com.android.tools.build:gradle:4.1.0' // used in subproject
        }
    }
    
    tasks.register('encode') {
        doLast {
            def byte[] encodedString = new Base64().encode('hello world\n'.getBytes())
            println new String(encodedString)
        }
    }
    ----
    
    And you can apply the globally declared dependencies in the subproject that needs it:
    
    [source,subproject/build.gradle]
    ----
    plugins {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 04:11:37 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  5. src/cmd/go/internal/work/buildid.go

    	a.output = []byte{}
    	return false
    }
    
    func showStdout(b *Builder, c cache.Cache, a *Action, key string) error {
    	actionID := a.actionID
    
    	stdout, stdoutEntry, err := cache.GetBytes(c, cache.Subkey(actionID, key))
    	if err != nil {
    		return err
    	}
    
    	if len(stdout) > 0 {
    		sh := b.Shell(a)
    		if cfg.BuildX || cfg.BuildN {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:31:25 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  6. src/testing/benchmark.go

    		b.startBytes = memStats.TotalAlloc
    		b.start = highPrecisionTimeNow()
    	}
    	b.duration = 0
    	b.netAllocs = 0
    	b.netBytes = 0
    }
    
    // SetBytes records the number of bytes processed in a single operation.
    // If this is called, the benchmark will report ns/op and MB/s.
    func (b *B) SetBytes(n int64) { b.bytes = n }
    
    // ReportAllocs enables malloc statistics for this benchmark.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  7. src/encoding/binary/binary_test.go

    }
    
    func BenchmarkPutUint16(b *testing.B) {
    	b.SetBytes(2)
    	for i := 0; i < b.N; i++ {
    		BigEndian.PutUint16(putbuf[:2], uint16(i))
    	}
    }
    
    func BenchmarkAppendUint16(b *testing.B) {
    	b.SetBytes(2)
    	for i := 0; i < b.N; i++ {
    		putbuf = BigEndian.AppendUint16(putbuf[:0], uint16(i))
    	}
    }
    
    func BenchmarkPutUint32(b *testing.B) {
    	b.SetBytes(4)
    	for i := 0; i < b.N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:16:18 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  8. src/crypto/ecdsa/ecdsa.go

    	Q, err := c.pointFromAffine(pub.X, pub.Y)
    	if err != nil {
    		return false
    	}
    
    	// SEC 1, Version 2.0, Section 4.1.4
    
    	r, err := bigmod.NewNat().SetBytes(rBytes, c.N)
    	if err != nil || r.IsZero() == 1 {
    		return false
    	}
    	s, err := bigmod.NewNat().SetBytes(sBytes, c.N)
    	if err != nil || s.IsZero() == 1 {
    		return false
    	}
    
    	e := bigmod.NewNat()
    	hashToNat(c, e, hash)
    
    	// w = s⁻¹
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  9. internal/grid/benchmark_test.go

    				defer timeout(60 * time.Second)()
    				ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
    				defer cancel()
    				b.ReportAllocs()
    				b.SetBytes(int64(len(payload) * 2))
    				b.ResetTimer()
    				t := time.Now()
    				var ops int64
    				var lat int64
    				b.SetParallelism(par)
    				b.RunParallel(func(pb *testing.PB) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  10. src/crypto/internal/edwards25519/field/fe.go

    }
    
    // Set sets v = a, and returns v.
    func (v *Element) Set(a *Element) *Element {
    	*v = *a
    	return v
    }
    
    // SetBytes sets v to x, where x is a 32-byte little-endian encoding. If x is
    // not of the right length, SetBytes returns nil and an error, and the
    // receiver is unchanged.
    //
    // Consistent with RFC 7748, the most significant bit (the high bit of the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top