Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 72 for PutBytes (0.12 sec)

  1. 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)
  2. 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)
  3. android/guava/src/com/google/common/hash/AbstractStreamingHasher.java

        process(bb);
      }
    
      @Override
      @CanIgnoreReturnValue
      public final Hasher putBytes(byte[] bytes, int off, int len) {
        return putBytesInternal(ByteBuffer.wrap(bytes, off, len).order(ByteOrder.LITTLE_ENDIAN));
      }
    
      @Override
      @CanIgnoreReturnValue
      public final Hasher putBytes(ByteBuffer readBuffer) {
        ByteOrder order = readBuffer.order();
        try {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/SipHashFunctionTest.java

        assertEquals(expected, SIP_WITH_KEY.hashBytes(input).asLong());
        assertEquals(expected, SIP_WITH_KEY.newHasher().putBytes(input).hash().asLong());
        assertEquals(expected, SIP_WITHOUT_KEY.hashBytes(input).asLong());
        assertEquals(expected, SIP_WITHOUT_KEY.newHasher().putBytes(input).hash().asLong());
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun May 05 18:02:35 UTC 2019
    - 6.6K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/internal/hash/ChecksumHasher.java

                byte[] buffer = new byte[4096];
                int len;
                try (InputStream in = new FileInputStream(file)) {
                    while ((len = in.read(buffer)) >= 0) {
                        hasher.putBytes(buffer, 0, len);
                    }
                }
                return hasher.hash();
            } catch (IOException e) {
                throw new UncheckedIOException(e);
            }
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 22 15:39:10 UTC 2020
    - 1.6K bytes
    - Viewed (0)
  6. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/HashingOutputStream.java

        public void write(int b) throws IOException {
            hasher.putByte((byte) b);
            out.write(b);
        }
    
        @Override
        public void write(byte[] bytes, int off, int len) throws IOException {
            hasher.putBytes(bytes, off, len);
            out.write(bytes, off, len);
        }
    
        public HashCode hash() {
            return hasher.hash();
        }
    
        @Override
        public void close() throws IOException {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:43:29 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/HashingInputStream.java

       */
      @Override
      @CanIgnoreReturnValue
      public int read(byte[] bytes, int off, int len) throws IOException {
        int numOfBytesRead = in.read(bytes, off, len);
        if (numOfBytesRead != -1) {
          hasher.putBytes(bytes, off, numOfBytesRead);
        }
        return numOfBytesRead;
      }
    
      /**
       * mark() is not supported for HashingInputStream
       *
       * @return {@code false} always
       */
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java

        @CanIgnoreReturnValue
        @Override
        public Hasher putByte(byte b) {
          update(1, b & 0xFF);
          return this;
        }
    
        @CanIgnoreReturnValue
        @Override
        public Hasher putBytes(byte[] bytes, int off, int len) {
          checkPositionIndexes(off, off + len, bytes.length);
          int i;
          for (i = 0; i + 4 <= len; i += 4) {
            update(4, getIntLittleEndian(bytes, off + i));
          }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 11.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/hash/Murmur3_32HashFunction.java

        @CanIgnoreReturnValue
        @Override
        public Hasher putByte(byte b) {
          update(1, b & 0xFF);
          return this;
        }
    
        @CanIgnoreReturnValue
        @Override
        public Hasher putBytes(byte[] bytes, int off, int len) {
          checkPositionIndexes(off, off + len, bytes.length);
          int i;
          for (i = 0; i + 4 <= len; i += 4) {
            update(4, getIntLittleEndian(bytes, off + i));
          }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 11.9K bytes
    - Viewed (0)
  10. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/DefaultStreamHasher.java

                    int nread = inputStream.read(buffer);
                    if (nread < 0) {
                        break;
                    }
                    outputStream.write(buffer, 0, nread);
                    hasher.putBytes(buffer, 0, nread);
                }
                return hasher.hash();
            } finally {
                returnBuffer(buffer);
            }
        }
    
        private void returnBuffer(byte[] buffer) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:43:29 UTC 2023
    - 2.5K bytes
    - Viewed (0)
Back to top