Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 81 for arraycopy (0.15 sec)

  1. guava-tests/test/com/google/common/primitives/LongArrayAsListTest.java

        }
      }
    
      private static Long[] concat(Long[] left, Long[] right) {
        Long[] result = new Long[left.length + right.length];
        System.arraycopy(left, 0, result, 0, left.length);
        System.arraycopy(right, 0, result, left.length, right.length);
        return result;
      }
    
      public abstract static class TestLongListGenerator implements TestListGenerator<Long> {
        @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/SourceSinkFactories.java

          if (initialBytes == null) {
            return checkNotNull(bytes);
          } else {
            byte[] result = new byte[initialBytes.length + bytes.length];
            System.arraycopy(initialBytes, 0, result, 0, initialBytes.length);
            System.arraycopy(bytes, 0, result, initialBytes.length, bytes.length);
            return result;
          }
        }
    
        @Override
        public byte[] getSinkContents() throws IOException {
    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)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java

          String[] prefix = {"f", "g"};
          String[] suffix = {"h", "i"};
    
          String[] all = new String[2 + elements.length + 2];
          System.arraycopy(prefix, 0, all, 0, 2);
          System.arraycopy(elements, 0, all, 2, elements.length);
          System.arraycopy(suffix, 0, all, 2 + elements.length, 2);
    
          return ImmutableList.copyOf(all).subList(2, elements.length + 2);
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

        checkArgument(
            rest.length <= Integer.MAX_VALUE - 1, "the total number of elements must fit in an int");
        int[] array = new int[rest.length + 1];
        array[0] = first;
        System.arraycopy(rest, 0, array, 1, rest.length);
        return new ImmutableIntArray(array);
      }
    
      /** Returns an immutable array containing the given values, in order. */
      public static ImmutableIntArray copyOf(int[] values) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ObjectArrays.java

      public static <T extends @Nullable Object> T[] concat(
          T[] first, T[] second, Class<@NonNull T> type) {
        T[] result = newArray(type, first.length + second.length);
        System.arraycopy(first, 0, result, 0, first.length);
        System.arraycopy(second, 0, result, first.length, second.length);
        return result;
      }
    
      /**
       * Returns a new array that prepends {@code element} to {@code array}.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 12 15:59:22 GMT 2023
    - 9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/IntArrayAsListTest.java

        }
      }
    
      private static Integer[] concat(Integer[] left, Integer[] right) {
        Integer[] result = new Integer[left.length + right.length];
        System.arraycopy(left, 0, result, 0, left.length);
        System.arraycopy(right, 0, result, left.length, right.length);
        return result;
      }
    
      public abstract static class TestIntegerListGenerator implements TestListGenerator<Integer> {
        @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/ByteArrayAsListTest.java

        }
      }
    
      private static Byte[] concat(Byte[] left, Byte[] right) {
        Byte[] result = new Byte[left.length + right.length];
        System.arraycopy(left, 0, result, 0, left.length);
        System.arraycopy(right, 0, result, left.length, right.length);
        return result;
      }
    
      public abstract static class TestByteListGenerator implements TestListGenerator<Byte> {
        @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

        checkArgument(
            rest.length <= Integer.MAX_VALUE - 1, "the total number of elements must fit in an int");
        double[] array = new double[rest.length + 1];
        array[0] = first;
        System.arraycopy(rest, 0, array, 1, rest.length);
        return new ImmutableDoubleArray(array);
      }
    
      /** Returns an immutable array containing the given values, in order. */
      public static ImmutableDoubleArray copyOf(double[] values) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  9. guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java

        int strCopyLen = len;
        int pos = 0;
        while (count != 0) {
          if ((count & 1) != 0) {
            System.arraycopy(strCopy, 0, array, pos, strCopyLen);
            pos += strCopyLen;
          }
          count >>= 1;
          if (count != 0) {
            System.arraycopy(strCopy, 0, strCopy, strCopyLen, strCopyLen);
            strCopyLen <<= 1;
          }
        }
        return new String(array);
      }
    
      @Benchmark
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:24:24 GMT 2021
    - 3.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Strings.java

        }
    
        final char[] array = new char[size];
        string.getChars(0, len, array, 0);
        int n;
        for (n = len; n < size - n; n <<= 1) {
          System.arraycopy(array, 0, array, n, n);
        }
        System.arraycopy(array, 0, array, n, size - n);
        return new String(array);
      }
    
      /**
       * Returns the longest string {@code prefix} such that {@code a.toString().startsWith(prefix) &&
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:47:03 GMT 2021
    - 12.6K bytes
    - Viewed (0)
Back to top