Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 128 for ArrayCopy (0.17 sec)

  1. android/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 {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 06 12:56:11 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/parser/PomDomParser.java

                }
    
                int nbrBytesCopied = 0;
    
                if (count < prefix.length) {
                    int nbrBytesFromPrefix = Math.min(prefix.length - count, len);
                    System.arraycopy(prefix, count, b, off, nbrBytesFromPrefix);
                    nbrBytesCopied = nbrBytesFromPrefix;
                }
    
                if (nbrBytesCopied < len) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java

      /** Equivalent to Arrays.copyOfRange(source, from, to, arrayOfType.getClass()). */
      static <T> T[] copy(Object[] source, int from, int to, T[] arrayOfType) {
        T[] result = newArray(arrayOfType, to - from);
        System.arraycopy(source, from, result, 0, to - from);
        return result;
      }
    
      // TODO(user): Move this logic to a utility class.
      @JsType(isNative = true, name = "Array", namespace = JsPackage.GLOBAL)
      private interface NativeArray {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 29 18:16:45 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

        checkArgument(
            rest.length <= Integer.MAX_VALUE - 1, "the total number of elements must fit in an int");
        long[] array = new long[rest.length + 1];
        array[0] = first;
        System.arraycopy(rest, 0, array, 1, rest.length);
        return new ImmutableLongArray(array);
      }
    
      /** Returns an immutable array containing the given values, in order. */
      public static ImmutableLongArray copyOf(long[] values) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 16:34:24 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  5. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/kryo/StringDeduplicatingKryoBackedDecoder.java

                }
                String string = null;
                if (idx >= strings.length) {
                    String[] grow = new String[strings.length * 3 / 2];
                    System.arraycopy(strings, 0, grow, 0, strings.length);
                    strings = grow;
                } else {
                    string = strings[idx];
                }
                if (string == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/suggest/index/contents/DefaultContentsParser.java

            final String[] roles = new String[roles1.length + roles2.length];
    
            if (roles1.length > 0) {
                System.arraycopy(roles1, 0, roles, 0, roles1.length);
            }
            if (roles2.length > 0) {
                System.arraycopy(roles2, 0, roles, roles1.length, roles2.length);
            }
    
            final List<SuggestItem> items = new ArrayList<>(fields.length);
            try {
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  7. test/codegen/floats.go

    // operations are not allowed in the note handler.
    
    func ArrayZero() [16]byte {
    	// amd64:"MOVUPS"
    	// plan9/amd64/:-"MOVUPS"
    	var a [16]byte
    	return a
    }
    
    func ArrayCopy(a [16]byte) (b [16]byte) {
    	// amd64:"MOVUPS"
    	// plan9/amd64/:-"MOVUPS"
    	b = a
    	return
    }
    
    // ---------------- //
    //  Float Min/Max   //
    // ---------------- //
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 15:24:29 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. 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) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 16:34:24 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  9. 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) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 16:34:24 UTC 2023
    - 21.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/primitives/ImmutableLongArray.java

        checkArgument(
            rest.length <= Integer.MAX_VALUE - 1, "the total number of elements must fit in an int");
        long[] array = new long[rest.length + 1];
        array[0] = first;
        System.arraycopy(rest, 0, array, 1, rest.length);
        return new ImmutableLongArray(array);
      }
    
      /** Returns an immutable array containing the given values, in order. */
      public static ImmutableLongArray copyOf(long[] values) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 16:34:24 UTC 2023
    - 21K bytes
    - Viewed (0)
Back to top