Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 113 for Goff (0.12 sec)

  1. android/guava/src/com/google/common/hash/Fingerprint2011.java

      private static final long K2 = 0xc47b6e9e3a970ed3L;
      private static final long K3 = 0xc6a4a7935bd1e995L;
    
      @Override
      public HashCode hashBytes(byte[] input, int off, int len) {
        checkPositionIndexes(off, off + len, input.length);
        return HashCode.fromLong(fingerprint(input, off, len));
      }
    
      @Override
      public int bits() {
        return 64;
      }
    
      @Override
      public String toString() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Dec 28 17:50:25 GMT 2021
    - 6.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/MultiInputStream.java

          if (result != -1) {
            return result;
          }
          advance();
        }
        return -1;
      }
    
      @Override
      public int read(byte[] b, int off, int len) throws IOException {
        checkNotNull(b);
        while (in != null) {
          int result = in.read(b, off, len);
          if (result != -1) {
            return result;
          }
          advance();
        }
        return -1;
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/ByteSourceTest.java

        ByteProcessor<byte[]> processor =
            new ByteProcessor<byte[]>() {
              int pos;
    
              @Override
              public boolean processBytes(byte[] buf, int off, int len) throws IOException {
                System.arraycopy(buf, off, processedBytes, pos, len);
                pos += len;
                return true;
              }
    
              @Override
              public byte[] getResult() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java

        @Override
        protected void update(byte b) {
          out.write(b);
        }
    
        @Override
        protected void update(byte[] b, int off, int len) {
          out.write(b, off, len);
        }
    
        byte[] bytes() {
          return out.toByteArray();
        }
    
        void assertBytes(byte[] expected) {
          assertArrayEquals(expected, bytes());
        }
    
    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)
  5. android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

      private static class Control extends AbstractNonStreamingHashFunction {
        @Override
        public HashCode hashBytes(byte[] input, int off, int len) {
          return HashCode.fromBytes(Arrays.copyOfRange(input, off, off + len));
        }
    
        @Override
        public int bits() {
          throw new UnsupportedOperationException();
        }
      }
    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)
  6. android/guava/src/com/google/common/hash/AbstractCompositeHashFunction.java

              hasher.putBytes(bytes);
            }
            return this;
          }
    
          @Override
          public Hasher putBytes(byte[] bytes, int off, int len) {
            for (Hasher hasher : hashers) {
              hasher.putBytes(bytes, off, len);
            }
            return this;
          }
    
          @Override
          public Hasher putBytes(ByteBuffer bytes) {
            int pos = bytes.position();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 5.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/HashFunction.java

      /**
       * Shortcut for {@code newHasher().putBytes(input, off, len).hash()}. The implementation
       * <i>might</i> perform better than its longhand equivalent, but should not perform worse.
       *
       * @throws IndexOutOfBoundsException if {@code off < 0} or {@code off + len > bytes.length} or
       *     {@code len < 0}
       */
      HashCode hashBytes(byte[] input, int off, int len);
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue May 25 18:22:59 GMT 2021
    - 10.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/SourceSinkFactories.java

      public static ByteSourceFactory asSlicedByteSourceFactory(
          final ByteSourceFactory factory, final long off, final long len) {
        checkNotNull(factory);
        return new ByteSourceFactory() {
          @Override
          public ByteSource createSource(byte[] bytes) throws IOException {
            return factory.createSource(bytes).slice(off, len);
          }
    
          @Override
          public byte[] getExpected(byte[] bytes) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Sep 09 17:57:59 GMT 2021
    - 17.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/AbstractStreamingHasher.java

        Java8Compatibility.limit(bb, chunkSize);
        Java8Compatibility.flip(bb);
        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();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 7.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableRangeMap.java

              public Range<K> get(int index) {
                checkElementIndex(index, len);
                if (index == 0 || index == len - 1) {
                  return ranges.get(index + off).intersection(range);
                } else {
                  return ranges.get(index + off);
                }
              }
    
              @Override
              boolean isPartialView() {
                return true;
              }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 14.5K bytes
    - Viewed (0)
Back to top