Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for putShorts (0.27 sec)

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

        }
    
        public static void putInts(Hasher hasher, int[] array) {
            hasher.putInt(array.length);
            for (int i : array) {
                hasher.putInt(i);
            }
        }
    
        public static void putShorts(Hasher hasher, short[] array) {
            hasher.putInt(array.length);
            for (short s : array) {
                hasher.putInt(s);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 20:22:02 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/ArrayOfPrimitiveValueSnapshot.java

                    return Arrays.toString((short[]) array);
                }
    
                @Override
                public void appendTo(Hasher hasher, Object array) {
                    HasherExtensions.putShorts(hasher, (short[]) array);
                }
    
                @Override
                public void encode(Encoder encoder, Object array) throws IOException {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/AbstractCompositeHashFunction.java

              Java8Compatibility.position(bytes, pos);
              hasher.putBytes(bytes);
            }
            return this;
          }
    
          @Override
          public Hasher putShort(short s) {
            for (Hasher hasher : hashers) {
              hasher.putShort(s);
            }
            return this;
          }
    
          @Override
          public Hasher putInt(int i) {
            for (Hasher hasher : hashers) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Oct 06 00:47:57 UTC 2021
    - 5.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/hash/AbstractByteHasher.java

      @Override
      @CanIgnoreReturnValue
      public Hasher putBytes(ByteBuffer bytes) {
        update(bytes);
        return this;
      }
    
      @Override
      @CanIgnoreReturnValue
      public Hasher putShort(short s) {
        scratch.putShort(s);
        return update(Shorts.BYTES);
      }
    
      @Override
      @CanIgnoreReturnValue
      public Hasher putInt(int i) {
        scratch.putInt(i);
        return update(Ints.BYTES);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java

        hasher.putLong(0x0000000001000101L);
        assertEquals(hashCode, hasher.hash().asLong());
    
        hasher = HASH_FN.newHasher();
        hasher
            .putShort((short) 0x0101)
            .putShort((short) 0x0100)
            .putShort((short) 0x0000)
            .putShort((short) 0x0000);
        assertEquals(hashCode, hasher.hash().asLong());
      }
    
      public void testHashFloatIsStable() {
        // Just a spot check.  Better than nothing.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 26 15:56:47 UTC 2017
    - 6.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/hash/AbstractByteHasher.java

      @Override
      @CanIgnoreReturnValue
      public Hasher putBytes(ByteBuffer bytes) {
        update(bytes);
        return this;
      }
    
      @Override
      @CanIgnoreReturnValue
      public Hasher putShort(short s) {
        scratch.putShort(s);
        return update(Shorts.BYTES);
      }
    
      @Override
      @CanIgnoreReturnValue
      public Hasher putInt(int i) {
        scratch.putInt(i);
        return update(Ints.BYTES);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/hash/AbstractCompositeHashFunction.java

              Java8Compatibility.position(bytes, pos);
              hasher.putBytes(bytes);
            }
            return this;
          }
    
          @Override
          public Hasher putShort(short s) {
            for (Hasher hasher : hashers) {
              hasher.putShort(s);
            }
            return this;
          }
    
          @Override
          public Hasher putInt(int i) {
            for (Hasher hasher : hashers) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Oct 06 00:47:57 UTC 2021
    - 5.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/AbstractStreamingHasher.java

      @CanIgnoreReturnValue
      public final Hasher putByte(byte b) {
        buffer.put(b);
        munchIfFull();
        return this;
      }
    
      @Override
      @CanIgnoreReturnValue
      public final Hasher putShort(short s) {
        buffer.putShort(s);
        munchIfFull();
        return this;
      }
    
      @Override
      @CanIgnoreReturnValue
      public final Hasher putChar(char c) {
        buffer.putChar(c);
        munchIfFull();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/PrimitiveSink.java

       * @return this instance
       * @since 23.0
       */
      @CanIgnoreReturnValue
      PrimitiveSink putBytes(ByteBuffer bytes);
    
      /** Puts a short into this sink. */
      @CanIgnoreReturnValue
      PrimitiveSink putShort(short s);
    
      /** Puts an int into this sink. */
      @CanIgnoreReturnValue
      PrimitiveSink putInt(int i);
    
      /** Puts a long into this sink. */
      @CanIgnoreReturnValue
      PrimitiveSink putLong(long l);
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  10. guava/src/com/google/common/hash/AbstractStreamingHasher.java

      @CanIgnoreReturnValue
      public final Hasher putByte(byte b) {
        buffer.put(b);
        munchIfFull();
        return this;
      }
    
      @Override
      @CanIgnoreReturnValue
      public final Hasher putShort(short s) {
        buffer.putShort(s);
        munchIfFull();
        return this;
      }
    
      @Override
      @CanIgnoreReturnValue
      public final Hasher putChar(char c) {
        buffer.putChar(c);
        munchIfFull();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 7.1K bytes
    - Viewed (0)
Back to top