Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for PutBytes (0.3 sec)

  1. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/Hashing.java

            }
    
            @Override
            public void putBytes(byte[] bytes) {
                hasher.putInt(bytes.length);
                hasher.putBytes(bytes);
            }
    
            @Override
            public void putBytes(byte[] bytes, int off, int len) {
                hasher.putInt(len);
                hasher.putBytes(bytes, off, len);
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:30 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/Hasher.java

     */
    public interface Hasher {
        /**
         * Feed a bunch of bytes into the hasher.
         */
        void putBytes(byte[] bytes);
    
        /**
         * Feed a given number of bytes into the hasher from the given offset.
         */
        void putBytes(byte[] bytes, int off, int len);
    
        /**
         * Feed a single byte into the hasher.
         */
        void putByte(byte value);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 11:14:18 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/GradleSerializedValueSnapshot.java

        public void appendToHasher(Hasher hasher) {
            if (implementationHash == null) {
                hasher.putNull();
            } else {
                hasher.putHash(implementationHash);
            }
            hasher.putBytes(serializedValue);
        }
    
        @Override
        public boolean equals(Object obj) {
            if (obj == this) {
                return true;
            }
            if (obj == null || obj.getClass() != getClass()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 09:46:00 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultTransport.java

            try {
                transporter.put(putTask);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
    
        @Override
        public void putBytes(byte[] source, URI relativeTarget) {
            requireNonNull(source, "source is null");
            try {
                Path tempPath = null;
                try {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu May 02 16:33:18 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/JavaSerializedValueSnapshot.java

        public void appendToHasher(Hasher hasher) {
            if (implementationHash == null) {
                hasher.putNull();
            } else {
                hasher.putHash(implementationHash);
            }
            hasher.putBytes(serializedValue);
        }
    
        @Override
        public boolean equals(Object obj) {
            if (obj == this) {
                return true;
            }
            if (obj == null || obj.getClass() != getClass()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 12:37:11 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/BasicZincScalaCompilerIntegrationTest.groovy

            def name = file.name - '.class'
            def hasher = Hashing.md5().newHasher()
            dir.listFiles().findAll { it.name.startsWith(name) && it.name.endsWith('.class') }.sort().each {
                hasher.putBytes(it.bytes)
            }
            hasher.hash()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/ArrayOfPrimitiveValueSnapshot.java

                    return Arrays.toString((byte[]) array);
                }
    
                @Override
                public void appendTo(Hasher hasher, Object array) {
                    hasher.putBytes((byte[]) array);
                }
    
                @Override
                public void encode(Encoder encoder, Object array) throws IOException {
                    encoder.writeBinary((byte[]) array);
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/EncryptionService.kt

            get() = secretKey != null
    
        override val encryptionKeyHashCode: HashCode by lazy {
            secretKey?.let {
                Hashing.sha512().newHasher().apply {
                    putBytes(it.encoded)
                    putString(encryptionAlgorithm.transformation)
                }.hash()
            } ?: Hashing.newHasher().hash()
        }
    
        private
        fun shouldEncryptStreams(stateType: StateType) =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  9. src/cmd/go/internal/cache/cache.go

    		return out, size, err
    	}
    
    	// Add to cache index.
    	return out, size, c.putIndexEntry(id, out, size, allowVerify)
    }
    
    // PutBytes stores the given bytes in the cache as the output for the action ID.
    func PutBytes(c Cache, id ActionID, data []byte) error {
    	_, _, err := c.Put(id, bytes.NewReader(data))
    	return err
    }
    
    // copyFile copies file into the cache, expecting it to have the given
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 14:19:39 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  10. cmd/server_test.go

    		buffer.WriteString(data)
    	}
    	// String content which is used for put object range test.
    	putBytes := buffer.Bytes()
    	putBytes = putBytes[:randInt]
    	// randomize the order of bytes in the byte array and create a reader.
    	putBytes = randomizeBytes(putBytes, -1)
    	buf := bytes.NewReader(putBytes)
    	putContent := string(putBytes)
    	objectName := "test-big-file"
    	// HTTP request to upload the object.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
Back to top