Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for offcut (0.18 sec)

  1. guava-tests/test/com/google/common/io/IoTestCase.java

        return newPreFilledByteArray(0, size);
      }
    
      /** Returns a byte array of length size that has values offset .. offset + size - 1. */
      static byte[] newPreFilledByteArray(int offset, int size) {
        byte[] array = new byte[size];
        for (int i = 0; i < size; i++) {
          array[i] = (byte) (offset + i);
        }
        return array;
      }
    
      private static void copy(URL url, File file) throws IOException {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java

          k1 ^= toInt(input[off + i]) << shift;
        }
        h1 ^= mixK1(k1);
        return fmix(h1, len);
      }
    
      private static int getIntLittleEndian(byte[] input, int offset) {
        return Ints.fromBytes(input[offset + 3], input[offset + 2], input[offset + 1], input[offset]);
      }
    
      private static int mixK1(int k1) {
        k1 *= C1;
        k1 = Integer.rotateLeft(k1, 15);
        k1 *= C2;
        return k1;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 11.9K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

        private static final long HEAD_OFFSET;
    
        /**
         * A special instance of {@link RunnableExecutorPair} that is used as a sentinel value for the
         * bottom of the stack.
         */
        private static final RunnableExecutorPair NULL_PAIR = new RunnableExecutorPair(null, null);
    
        static {
          try {
            UNSAFE = getUnsafe();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 20.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/hash/PrimitiveSink.java

      /**
       * Puts a chunk of an array of bytes into this sink. {@code bytes[off]} is the first byte written,
       * {@code bytes[off + len - 1]} is the last.
       *
       * @param bytes a byte array
       * @param off the start offset in the array
       * @param len the number of bytes to write
       * @return this instance
       * @throws IndexOutOfBoundsException if {@code off < 0} or {@code off + len > bytes.length} or
       *     {@code len < 0}
       */
    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)
  5. android/guava/src/com/google/common/io/LineBuffer.java

       * the line and the line separator itself are passed to the abstract {@link #handleLine} method.
       *
       * @param cbuf the character buffer to process
       * @param off the offset into the buffer
       * @param len the number of characters to process
       * @throws IOException if an I/O error occurs
       * @see #finish
       */
      protected void add(char[] cbuf, int off, int len) throws IOException {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/math/DoubleMath.java

      }
    
      private static final double MIN_LONG_AS_DOUBLE = -0x1p63;
      /*
       * We cannot store Long.MAX_VALUE as a double without losing precision. Instead, we store
       * Long.MAX_VALUE + 1 == -Long.MIN_VALUE, and then offset all comparisons by 1.
       */
      private static final double MAX_LONG_AS_DOUBLE_PLUS_ONE = 0x1p63;
    
      /**
       * Returns the {@code BigInteger} value that is equal to {@code x} rounded with the specified
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/SingletonImmutableSet.java

        return ImmutableList.of(element);
      }
    
      @Override
      boolean isPartialView() {
        return false;
      }
    
      @Override
      int copyIntoArray(@Nullable Object[] dst, int offset) {
        dst[offset] = element;
        return offset + 1;
      }
    
      @Override
      public final int hashCode() {
        return element.hashCode();
      }
    
      @Override
      public String toString() {
        return '[' + element.toString() + ']';
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/DiscreteDomain.java

      /** Private constructor for built-in DiscreteDomains supporting fast offset. */
      private DiscreteDomain(boolean supportsFastOffset) {
        this.supportsFastOffset = supportsFastOffset;
      }
    
      /**
       * Returns, conceptually, "origin + distance", or equivalently, the result of calling {@link
       * #next} on {@code origin} {@code distance} times.
       */
      C offset(C origin, long distance) {
        C current = origin;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/RegularImmutableMap.java

        private final transient @Nullable Object[] alternatingKeysAndValues;
        private final transient int offset;
        private final transient int size;
    
        KeysOrValuesAsList(@Nullable Object[] alternatingKeysAndValues, int offset, int size) {
          this.alternatingKeysAndValues = alternatingKeysAndValues;
          this.offset = offset;
          this.size = size;
        }
    
        @Override
        public Object get(int index) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableList.java

        return new SubList(fromIndex, toIndex - fromIndex);
      }
    
      class SubList extends ImmutableList<E> {
        final transient int offset;
        final transient int length;
    
        SubList(int offset, int length) {
          this.offset = offset;
          this.length = length;
        }
    
        @Override
        public int size() {
          return length;
        }
    
        @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
Back to top