Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for putBytes (0.06 sec)

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

        ByteBuffer bigEndian = ByteBuffer.wrap(bytes).order(ByteOrder.BIG_ENDIAN);
        assertEquals(
            hashFunction.newHasher().putBytes(littleEndian).hash(),
            hashFunction.newHasher().putBytes(bigEndian).hash());
        assertEquals(ByteOrder.LITTLE_ENDIAN, littleEndian.order());
        assertEquals(ByteOrder.BIG_ENDIAN, bigEndian.order());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/hash/Murmur3_32HashFunction.java

            buffer >>>= 32;
            shift -= 32;
          }
        }
    
        @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) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 02 13:50:22 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/HashFunction.java

       */
      HashCode hashLong(long input);
    
      /**
       * Shortcut for {@code newHasher().putBytes(input).hash()}. The implementation <i>might</i>
       * perform better than its longhand equivalent, but should not perform worse.
       */
      HashCode hashBytes(byte[] input);
    
      /**
       * Shortcut for {@code newHasher().putBytes(input, off, len).hash()}. The implementation
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 25 18:22:59 UTC 2021
    - 10.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/hash/HashFunction.java

       */
      HashCode hashLong(long input);
    
      /**
       * Shortcut for {@code newHasher().putBytes(input).hash()}. The implementation <i>might</i>
       * perform better than its longhand equivalent, but should not perform worse.
       */
      HashCode hashBytes(byte[] input);
    
      /**
       * Shortcut for {@code newHasher().putBytes(input, off, len).hash()}. The implementation
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 25 18:22:59 UTC 2021
    - 10.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/util/DES.java

        public static void spreadIntsToBytes( int[] inInts, int inOff, byte[] outBytes,
                                             int outOff, int intLen ) {
    
            for ( int i = 0; i < intLen; ++i ) {
    
                outBytes[outOff + i * 4    ] = (byte) ( inInts[inOff + i] >>> 24 );
                outBytes[outOff + i * 4 + 1] = (byte) ( inInts[inOff + i] >>> 16 );
                outBytes[outOff + i * 4 + 2] = (byte) ( inInts[inOff + i] >>>  8 );
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 21.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/hash/HashingTest.java

      public void testHashIntVsForLoop() {
        int input = 42;
        HashCode expected = Hashing.md5().hashInt(input);
    
        Hasher hasher = Hashing.md5().newHasher();
        for (int i = 0; i < 32; i += 8) {
          hasher.putByte((byte) (input >> i));
        }
        HashCode actual = hasher.hash();
    
        assertEquals(expected, actual);
      }
    
      private static final String TQBFJOTLD = "The quick brown fox jumps over the lazy dog";
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 09 17:40:09 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  7. internal/grid/connection.go

    	incomingBytes func(n int64) // Record incoming bytes.
    	outgoingBytes func(n int64) // Record outgoing bytes.
    	trace         *tracer       // tracer for this connection.
    	baseFlags     Flags
    	outBytes      atomic.Int64
    	inBytes       atomic.Int64
    	inMessages    atomic.Int64
    	outMessages   atomic.Int64
    	reconnects    atomic.Int64
    	lastConnect   atomic.Pointer[time.Time]
    	lastPingDur   atomic.Int64
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 46.7K bytes
    - Viewed (0)
Back to top