Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 21 for filebytes (0.05 seconds)

  1. build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/JdkDownloadPluginFuncTest.groovy

        @Unroll
        def "jdk #jdkVendor for #platform#suffix are downloaded and extracted"() {
            given:
            def mockRepoUrl = urlPath(jdkVendor, jdkVersion, platform, arch);
            def mockedContent = filebytes(jdkVendor, platform)
            buildFile.text = """
                plugins {
                 id 'elasticsearch.jdk-download'
                }
    
                jdks {
                  myJdk {
                    vendor = '$jdkVendor'
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Sep 27 19:29:10 GMT 2021
    - 10.5K bytes
    - Click Count (0)
  2. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/DependencyLicensesTask.java

            }
    
            // TODO: shouldn't have to trim, sha files should not have trailing newline
            byte[] fileBytes = Files.readAllBytes(shaFile.toPath());
            String expectedSha = new String(fileBytes, StandardCharsets.UTF_8).trim();
    
            String sha = getSha1(jar);
    
            if (expectedSha.equals(sha) == false) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Jul 26 12:16:14 GMT 2021
    - 14.3K bytes
    - Click Count (0)
  3. cmd/object-api-putobject_test.go

    		21: {bucketName: bucket, objName: object, inputData: nilBytes, inputMeta: md5Header(nilBytes), inputSHA256: getSHA256Hash(nilBytes), inputDataSize: int64(len(nilBytes)), expectedMd5: getMD5Hash(nilBytes)},
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 25.8K bytes
    - Click Count (0)
  4. src/main/java/jcifs/internal/witness/WitnessRegisterMessage.java

                // String data in UTF-16LE
                buf.writeOctetArray(wideBytes, 0, wideBytes.length);
                buf.enc_ndr_short(0); // Wide null terminator
    
                // Pad to 4-byte boundary
                int padding = (4 - ((wideBytes.length + 2) % 4)) % 4;
                for (int i = 0; i < padding; i++) {
                    buf.enc_ndr_small(0);
                }
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 09:06:40 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/util/MemoryUtil.java

         */
        public static String getMemoryUsageLog() {
            final Runtime runtime = Runtime.getRuntime();
            final long freeBytes = runtime.freeMemory();
            final long maxBytes = runtime.maxMemory();
            final long totalBytes = runtime.totalMemory();
            final long usedBytes = totalBytes - freeBytes;
            return "Mem:{used " + byteCountToDisplaySize(usedBytes) + ", heap " + byteCountToDisplaySize(totalBytes) + ", max "
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/entity/FacetQueryView.java

                final ResourceBundle resources = ResourceBundle.getBundle("fess_label", Locale.ENGLISH);
                final String[] fileTypes = ComponentUtil.getFileTypeHelper().getTypes();
                for (final String fileType : fileTypes) {
                    final String value = filetypeField + ":" + fileType;
                    if (!values.contains(value)) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  7. impl/maven-cli/src/test/java/org/apache/maven/cling/transfer/FileSizeFormatTest.java

                    // 999 kilobytes
                    Arguments.of(999L * 1000L, null, "999 kB"),
                    Arguments.of(999L * 1000L, ScaleUnit.BYTE, "999000 B"),
                    Arguments.of(999L * 1000L, ScaleUnit.KILOBYTE, "999 kB"),
                    Arguments.of(999L * 1000L, ScaleUnit.MEGABYTE, "1.0 MB"),
                    Arguments.of(999L * 1000L, ScaleUnit.GIGABYTE, "0 GB"),
    
                    // 1000 kilobytes
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 14.9K bytes
    - Click Count (0)
  8. src/bytes/buffer_test.go

    	}
    	return s
    }
    
    // Fill buf through n writes of byte slice fub.
    // The initial contents of buf corresponds to the string s;
    // the result is the final contents of buf returned as a string.
    func fillBytes(t *testing.T, testname string, buf *Buffer, s string, n int, fub []byte) string {
    	check(t, testname+" (fill 1)", buf, s)
    	for ; n > 0; n-- {
    		m, err := buf.Write(fub)
    		if m != len(fub) {
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Nov 14 19:01:17 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  9. samples/static-server/src/main/java/okhttp3/sample/SampleServer.java

      private MockResponse fileToResponse(String path, File file) throws IOException {
        return new MockResponse()
            .setStatus("HTTP/1.1 200")
            .setBody(fileToBytes(file))
            .addHeader("content-type: " + contentType(path));
      }
    
      private Buffer fileToBytes(File file) throws IOException {
        Buffer result = new Buffer();
        result.writeAll(Okio.source(file));
        return result;
      }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 11 02:37:00 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  10. cmd/metrics-v3-system-drive.go

    		"Count of all drives")
    
    	// iostat related
    	driveReadsPerSecMD = NewGaugeMD(driveReadsPerSec,
    		"Reads per second on a drive",
    		allDriveLabels...)
    	driveReadsKBPerSecMD = NewGaugeMD(driveReadsKBPerSec,
    		"Kilobytes read per second on a drive",
    		allDriveLabels...)
    	driveReadsAwaitMD = NewGaugeMD(driveReadsAwait,
    		"Average time for read requests served on a drive",
    		allDriveLabels...)
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Mar 30 00:56:02 GMT 2025
    - 7.8K bytes
    - Click Count (0)
Back to Top