Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for putInt (0.2 sec)

  1. android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

        HashCode unused = sink.hash();
        sink.assertInvariants(2);
        sink.assertBytes(new byte[] {1, 2, 0, 0}); // padded with zeros
      }
    
      public void testInt() {
        Sink sink = new Sink(4);
        sink.putInt(0x04030201);
        HashCode unused = sink.hash();
        sink.assertInvariants(4);
        sink.assertBytes(new byte[] {1, 2, 3, 4});
      }
    
      public void testLong() {
        Sink sink = new Sink(8);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java

            sha1.putString("The quick brown fox jumps over the lazy dog", Charsets.UTF_8)
                .hash()
                .toString());
        assertThrows(IllegalStateException.class, () -> sha1.putInt(42));
      }
    
      public void testHashTwice() {
        Hasher sha1 = Hashing.sha1().newHasher();
    
        assertEquals(
            "2fd4e1c67a2d28fced849ee1bb76e7391b93eb12",
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/PrimitiveSink.java

      /** 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);
    
      /** Puts a float into this sink. */
      @CanIgnoreReturnValue
      PrimitiveSink putFloat(float f);
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/FunnelsTest.java

        }
      }
    
      public void testForInts() {
        Integer value = 1234;
        PrimitiveSink primitiveSink = mock(PrimitiveSink.class);
        Funnels.integerFunnel().funnel(value, primitiveSink);
        verify(primitiveSink).putInt(1234);
      }
    
      public void testForInts_null() {
        assertNullsThrowException(Funnels.integerFunnel());
      }
    
      public void testForLongs() {
        Long value = 1234L;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 02 16:24:50 GMT 2020
    - 5.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/hash/Funnel.java

     *   INSTANCE;
     *   public void funnel(Person person, PrimitiveSink into) {
     *     into.putUnencodedChars(person.getFirstName())
     *         .putUnencodedChars(person.getLastName())
     *         .putInt(person.getAge());
     *   }
     * }
     * }</pre>
     *
     * @author Dimitris Andreou
     * @since 11.0
     */
    @Beta
    @DoNotMock("Implement with a lambda")
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 2.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/hash/Funnels.java

        return IntegerFunnel.INSTANCE;
      }
    
      private enum IntegerFunnel implements Funnel<Integer> {
        INSTANCE;
    
        @Override
        public void funnel(Integer from, PrimitiveSink into) {
          into.putInt(from);
        }
    
        @Override
        public String toString() {
          return "Funnels.integerFunnel()";
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 25 20:32:46 GMT 2022
    - 7.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/AbstractNonStreamingHashFunction.java

        return new BufferingHasher(expectedInputSize);
      }
    
      @Override
      public HashCode hashInt(int input) {
        return hashBytes(ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN).putInt(input).array());
      }
    
      @Override
      public HashCode hashLong(long input) {
        return hashBytes(ByteBuffer.allocate(8).order(ByteOrder.LITTLE_ENDIAN).putLong(input).array());
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 3.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java

        TestHasher hasher = new TestHasher();
        hasher.putShort((short) 0x0201);
        hasher.assertBytes(new byte[] {1, 2});
      }
    
      public void testInt() {
        TestHasher hasher = new TestHasher();
        hasher.putInt(0x04030201);
        hasher.assertBytes(new byte[] {1, 2, 3, 4});
      }
    
      public void testLong() {
        TestHasher hasher = new TestHasher();
        hasher.putLong(0x0807060504030201L);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  9. LICENSES/third_party/forked/shell2junit/LICENSE

    Object form. 
    
    3. Grant of Patent License. Subject to the terms and conditions of this 
    License, each Contributor hereby grants to You a perpetual, worldwide, 
    non-exclusive, no-charge, royalty-free, irrevocable (except as stated in 
    this section) patent license to make, have made, use, offer to sell, sell, 
    import, and otherwise transfer the Work, where such license applies only to 
    Plain Text
    - Registered: Fri May 03 09:05:14 GMT 2024
    - Last Modified: Thu Jul 08 11:48:19 GMT 2021
    - 9.2K bytes
    - Viewed (0)
  10. PATENTS

    order or agree to the institution of patent litigation against any
    entity (including a cross-claim or counterclaim in a lawsuit) alleging
    that this implementation of Go or any code incorporated within this
    implementation of Go constitutes direct or contributory patent
    infringement, or inducement of patent infringement, then any patent
    rights granted to you under this License for this implementation of Go
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Dec 06 21:31:59 GMT 2010
    - 1.3K bytes
    - Viewed (0)
Back to top