Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 109 for newarray (0.15 sec)

  1. src/cmd/compile/internal/typecheck/mkbuiltin.go

    		}
    		return "types.Types[types.TUNSAFEPTR]"
    
    	case *ast.ArrayType:
    		if t.Len == nil {
    			return fmt.Sprintf("types.NewSlice(%s)", i.subtype(t.Elt))
    		}
    		return fmt.Sprintf("types.NewArray(%s, %d)", i.subtype(t.Elt), intconst(t.Len))
    	case *ast.ChanType:
    		dir := "types.Cboth"
    		switch t.Dir {
    		case ast.SEND:
    			dir = "types.Csend"
    		case ast.RECV:
    			dir = "types.Crecv"
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:49 UTC 2023
    - 6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

        float[] array = {(float) 0, (float) 1, (float) 2};
        List<Float> list = Floats.asList(array);
        float[] newArray = Floats.toArray(list);
    
        // Make sure it returned a copy
        list.set(0, (float) 4);
        assertThat(newArray).isEqualTo(new float[] {(float) 0, (float) 1, (float) 2});
        newArray[1] = (float) 5;
        assertThat((float) list.get(1)).isEqualTo((float) 1);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/IntsTest.java

        int[] array = {(int) 0, (int) 1, (int) 2};
        List<Integer> list = Ints.asList(array);
        int[] newArray = Ints.toArray(list);
    
        // Make sure it returned a copy
        list.set(0, (int) 4);
        assertThat(newArray).isEqualTo(new int[] {(int) 0, (int) 1, (int) 2});
        newArray[1] = (int) 5;
        assertThat((int) list.get(1)).isEqualTo((int) 1);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 06 16:10:08 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/DoublesTest.java

        double[] array = {(double) 0, (double) 1, (double) 2};
        List<Double> list = Doubles.asList(array);
        double[] newArray = Doubles.toArray(list);
    
        // Make sure it returned a copy
        list.set(0, (double) 4);
        assertThat(newArray).isEqualTo(new double[] {(double) 0, (double) 1, (double) 2});
        newArray[1] = (double) 5;
        assertThat((double) list.get(1)).isEqualTo((double) 1);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/FloatsTest.java

        float[] array = {(float) 0, (float) 1, (float) 2};
        List<Float> list = Floats.asList(array);
        float[] newArray = Floats.toArray(list);
    
        // Make sure it returned a copy
        list.set(0, (float) 4);
        assertThat(newArray).isEqualTo(new float[] {(float) 0, (float) 1, (float) 2});
        newArray[1] = (float) 5;
        assertThat((float) list.get(1)).isEqualTo((float) 1);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/LongsTest.java

        long[] array = {(long) 0, (long) 1, (long) 2};
        List<Long> list = Longs.asList(array);
        long[] newArray = Longs.toArray(list);
    
        // Make sure it returned a copy
        list.set(0, (long) 4);
        assertThat(newArray).isEqualTo(new long[] {(long) 0, (long) 1, (long) 2});
        newArray[1] = (long) 5;
        assertThat((long) list.get(1)).isEqualTo((long) 1);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 30K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/walk/convert.go

    		}
    		// The actual type is [256]uint64, but we use [256*8]uint8 so we can address
    		// individual bytes.
    		staticuint64s := ir.NewLinksymExpr(base.Pos, ir.Syms.Staticuint64s, types.NewArray(types.Types[types.TUINT8], 256*8))
    		xe := ir.NewIndexExpr(base.Pos, staticuint64s, index)
    		xe.SetBounded(true)
    		value = xe
    	case n.Op() == ir.ONAME && n.(*ir.Name).Class == ir.PEXTERN && n.(*ir.Name).Readonly():
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 17:28:22 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableCollection.java

          Object[] internal = internalArray();
          if (internal != null) {
            return Platform.copy(internal, internalArrayStart(), internalArrayEnd(), other);
          }
          other = ObjectArrays.newArray(other, size);
        } else if (other.length > size) {
          other[size] = null;
        }
        copyIntoArray(other, 0);
        return other;
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  9. src/runtime/map_faststr.go

    	// Set hashWriting after calling t.hasher for consistency with mapassign.
    	h.flags ^= hashWriting
    
    	if h.buckets == nil {
    		h.buckets = newobject(t.Bucket) // newarray(t.bucket, 1)
    	}
    
    again:
    	bucket := hash & bucketMask(h.B)
    	if h.growing() {
    		growWork_faststr(t, h, bucket)
    	}
    	b := (*bmap)(add(h.buckets, bucket*uintptr(t.BucketSize)))
    	top := tophash(hash)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableCollection.java

          Object[] internal = internalArray();
          if (internal != null) {
            return Platform.copy(internal, internalArrayStart(), internalArrayEnd(), other);
          }
          other = ObjectArrays.newArray(other, size);
        } else if (other.length > size) {
          other[size] = null;
        }
        copyIntoArray(other, 0);
        return other;
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 21.5K bytes
    - Viewed (0)
Back to top