Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 109 for newarray (0.14 sec)

  1. guava/src/com/google/common/collect/ForwardingCollection.java

       * this implementation.
       *
       * @since 7.0
       */
      protected @Nullable Object[] standardToArray() {
        @Nullable Object[] newArray = new @Nullable Object[size()];
        return toArray(newArray);
      }
    
      /**
       * A sensible definition of {@link #toArray(Object[])} in terms of {@link #size} and {@link
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 29 19:42:21 UTC 2021
    - 8.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/select.go

    	// generate sel-struct
    	base.Pos = sellineno
    	selv := typecheck.TempAt(base.Pos, ir.CurFunc, types.NewArray(scasetype(), int64(ncas)))
    	init = append(init, typecheck.Stmt(ir.NewAssignStmt(base.Pos, selv, nil)))
    
    	// No initialization for order; runtime.selectgo is responsible for that.
    	order := typecheck.TempAt(base.Pos, ir.CurFunc, types.NewArray(types.Types[types.TUINT16], 2*int64(ncas)))
    
    	var pc0, pcs ir.Node
    	if base.Flag.Race {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 01:53:41 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  3. platforms/core-configuration/base-services-groovy/src/main/java/org/gradle/api/specs/AndSpec.java

            int thisLength = thisSpecs.length;
            if (thisLength == 0) {
                return new AndSpec<T>(specs);
            }
            Spec<? super T>[] combinedSpecs = uncheckedCast(ObjectArrays.newArray(Spec.class, thisLength + specs.length));
            System.arraycopy(thisSpecs, 0, combinedSpecs, 0, thisLength);
            System.arraycopy(specs, 0, combinedSpecs, thisLength, specs.length);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 11:17:19 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/temp.go

    func stackBufAddr(len int64, elem *types.Type) *ir.AddrExpr {
    	if elem.HasPointers() {
    		base.FatalfAt(base.Pos, "%v has pointers", elem)
    	}
    	tmp := typecheck.TempAt(base.Pos, ir.CurFunc, types.NewArray(elem, len))
    	return typecheck.Expr(typecheck.NodAddr(tmp)).(*ir.AddrExpr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 16:41:23 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/main/java/org/gradle/api/specs/OrSpec.java

            int thisLength = thisSpecs.length;
            if (thisLength == 0) {
                return new OrSpec<T>(specs);
            }
            Spec<? super T>[] combinedSpecs = uncheckedCast(ObjectArrays.newArray(Spec.class, thisLength + specs.length));
            System.arraycopy(thisSpecs, 0, combinedSpecs, 0, thisLength);
            System.arraycopy(specs, 0, combinedSpecs, thisLength, specs.length);
            return new OrSpec<T>(combinedSpecs);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/BytesTest.java

        byte[] array = {(byte) 0, (byte) 1, (byte) 2};
        List<Byte> list = Bytes.asList(array);
        byte[] newArray = Bytes.toArray(list);
    
        // Make sure it returned a copy
        list.set(0, (byte) 4);
        assertThat(newArray).isEqualTo(new byte[] {(byte) 0, (byte) 1, (byte) 2});
        newArray[1] = (byte) 5;
        assertThat((byte) list.get(1)).isEqualTo((byte) 1);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 06 16:10:08 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/pkginit/initAsanGlobals.go

    	lname := typecheck.Lookup
    	tconv := typecheck.ConvNop
    	// Make a global array of asanGlobalStruct type.
    	// var asanglobals []asanGlobalStruct
    	arraytype := types.NewArray(asanGlobalStruct, int64(len(InstrumentGlobalsMap)))
    	symG := lname(".asanglobals")
    	globals := ir.NewNameAt(base.Pos, symG, arraytype)
    	globals.Class = ir.PEXTERN
    	symG.Def = globals
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 19:36:24 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Platform.java

       * about arrays for now, as they're a mess. (We previously discussed this in the review of
       * ObjectArrays, which is the main caller of this method.)
       */
      static <T extends @Nullable Object> T[] newArray(T[] reference, int length) {
        T[] empty = reference.length == 0 ? reference : Arrays.copyOf(reference, 0);
        return Arrays.copyOf(empty, length);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Platform.java

       * about arrays for now, as they're a mess. (We previously discussed this in the review of
       * ObjectArrays, which is the main caller of this method.)
       */
      static <T extends @Nullable Object> T[] newArray(T[] reference, int length) {
        T[] empty = reference.length == 0 ? reference : Arrays.copyOf(reference, 0);
        return Arrays.copyOf(empty, length);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/CharsTest.java

        char[] array = {(char) 0, (char) 1, (char) 2};
        List<Character> list = Chars.asList(array);
        char[] newArray = Chars.toArray(list);
    
        // Make sure it returned a copy
        list.set(0, (char) 4);
        assertThat(newArray).isEqualTo(new char[] {(char) 0, (char) 1, (char) 2});
        newArray[1] = (char) 5;
        assertThat((char) list.get(1)).isEqualTo((char) 1);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 24.7K bytes
    - Viewed (0)
Back to top