Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 72 for numbytes (0.06 sec)

  1. guava/src/com/google/common/hash/AbstractNonStreamingHashFunction.java

        @Override
        public Hasher putByte(byte b) {
          stream.write(b);
          return this;
        }
    
        @Override
        public Hasher putBytes(byte[] bytes, int off, int len) {
          stream.write(bytes, off, len);
          return this;
        }
    
        @Override
        public Hasher putBytes(ByteBuffer bytes) {
          stream.write(bytes);
          return this;
        }
    
        @Override
        public HashCode hash() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/HashingInputStreamTest.java

        int numOfByteRead = in.read(buf, 0, buf.length);
        assertEquals(4, numOfByteRead);
        for (int i = 0; i < testBytes.length; i++) {
          assertEquals(testBytes[i], buf[i]);
        }
    
        verify(hasher).putBytes(testBytes, 0, testBytes.length);
        verify(hashFunction).newHasher();
        verifyNoMoreInteractions(hashFunction, hasher);
      }
    
      public void testRead_putByteArrayAtPos() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 02 16:24:50 UTC 2020
    - 5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/hash/HashingInputStreamTest.java

        int numOfByteRead = in.read(buf, 0, buf.length);
        assertEquals(4, numOfByteRead);
        for (int i = 0; i < testBytes.length; i++) {
          assertEquals(testBytes[i], buf[i]);
        }
    
        verify(hasher).putBytes(testBytes, 0, testBytes.length);
        verify(hashFunction).newHasher();
        verifyNoMoreInteractions(hashFunction, hasher);
      }
    
      public void testRead_putByteArrayAtPos() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 02 16:24:50 UTC 2020
    - 5K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. android/guava-tests/test/com/google/common/hash/HashingOutputStreamTest.java

        byte[] buf = new byte[] {'y', 'a', 'm', 's'};
        HashingOutputStream out = new HashingOutputStream(hashFunction, buffer);
        out.write(buf);
    
        verify(hashFunction).newHasher();
        verify(hasher).putBytes(buf, 0, buf.length);
        verifyNoMoreInteractions(hashFunction, hasher);
      }
    
      public void testWrite_putByteArrayAtPos() throws Exception {
        byte[] buf = new byte[] {'y', 'a', 'm', 's'};
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 11 22:00:03 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  8. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  9. tensorflow/c/c_api_test.cc

    }
    
    TEST(CAPI, Tensor) {
      const int num_bytes = 6 * sizeof(float);
      float* values =
          reinterpret_cast<float*>(tensorflow::cpu_allocator()->AllocateRaw(
              TF_TensorDefaultAlignment(), num_bytes));
      int64_t dims[] = {2, 3};
      bool deallocator_called = false;
      TF_Tensor* t = TF_NewTensor(TF_FLOAT, dims, 2, values, num_bytes,
                                  &Deallocator, &deallocator_called);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 97K bytes
    - Viewed (0)
  10. 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)
Back to top