Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 72 for newEArray (0.22 sec)

  1. 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)
  2. 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)
  3. src/cmd/compile/internal/types/type.go

    		t.extra = new(Chan)
    	case TTUPLE:
    		t.extra = new(Tuple)
    	case TRESULTS:
    		t.extra = new(Results)
    	}
    	return t
    }
    
    // NewArray returns a new fixed-length array Type.
    func NewArray(elem *Type, bound int64) *Type {
    	if bound < 0 {
    		base.Fatalf("NewArray: invalid bound %v", bound)
    	}
    	t := newType(TARRAY)
    	t.extra = &Array{Elem: elem, Bound: bound}
    	if elem.HasShape() {
    		t.SetHasShape(true)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  4. src/go/internal/gcimporter/ureader.go

    			return t
    		}
    		return name.Type()
    
    	case pkgbits.TypeTypeParam:
    		return r.dict.tparams[r.Len()]
    
    	case pkgbits.TypeArray:
    		len := int64(r.Uint64())
    		return types.NewArray(r.typ(), len)
    	case pkgbits.TypeChan:
    		dir := types.ChanDir(r.Len())
    		return types.NewChan(dir, r.typ())
    	case pkgbits.TypeMap:
    		return types.NewMap(r.typ(), r.typ())
    	case pkgbits.TypePointer:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/api_test.go

    		{newDefined(Typ[Int]), new(Struct), false},
    		{Typ[UntypedInt], Typ[Int], true},
    		{NewSlice(Typ[Int]), NewArray(Typ[Int], 10), true},
    		{NewSlice(Typ[Int]), NewArray(Typ[Uint], 10), false},
    		{NewSlice(Typ[Int]), NewPointer(NewArray(Typ[Int], 10)), true},
    		{NewSlice(Typ[Int]), NewPointer(NewArray(Typ[Uint], 10)), false},
    		// Untyped string values are not permitted by the spec, so the behavior below is undefined.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  6. src/runtime/map.go

    		up := roundupsize(sz, !t.Bucket.Pointers())
    		if up != sz {
    			nbuckets = up / t.Bucket.Size_
    		}
    	}
    
    	if dirtyalloc == nil {
    		buckets = newarray(t.Bucket, int(nbuckets))
    	} else {
    		// dirtyalloc was previously generated by
    		// the above newarray(t.Bucket, int(nbuckets))
    		// but may not be empty.
    		buckets = dirtyalloc
    		size := t.Bucket.Size_ * nbuckets
    		if t.Bucket.Pointers() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  7. src/go/internal/gcimporter/iimport.go

    	case pointerType:
    		return types.NewPointer(r.typ())
    	case sliceType:
    		return types.NewSlice(r.typ())
    	case arrayType:
    		n := r.uint64()
    		return types.NewArray(r.typ(), int64(n))
    	case chanType:
    		dir := chanDir(int(r.uint64()))
    		return types.NewChan(dir, r.typ())
    	case mapType:
    		return types.NewMap(r.typ(), r.typ())
    	case signatureType:
    		r.currPkg = r.pkg()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

      public void testToArray() {
        String[] sourceArray = new String[] {"a", "b", "c"};
        Iterator<String> iterator = asList(sourceArray).iterator();
        String[] newArray = Iterators.toArray(iterator, String.class);
        assertTrue(Arrays.equals(sourceArray, newArray));
      }
    
      public void testFilterSimple() {
        Iterator<String> unfiltered = Lists.newArrayList("foo", "bar").iterator();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 03 13:01:51 UTC 2024
    - 55.7K bytes
    - Viewed (0)
  9. src/go/types/api_test.go

    		{newDefined(Typ[Int]), new(Struct), false},
    		{Typ[UntypedInt], Typ[Int], true},
    		{NewSlice(Typ[Int]), NewArray(Typ[Int], 10), true},
    		{NewSlice(Typ[Int]), NewArray(Typ[Uint], 10), false},
    		{NewSlice(Typ[Int]), NewPointer(NewArray(Typ[Int], 10)), true},
    		{NewSlice(Typ[Int]), NewPointer(NewArray(Typ[Uint], 10)), false},
    		// Untyped string values are not permitted by the spec, so the behavior below is undefined.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/walk/order.go

    	// Fewer than 5 strings use direct runtime helpers.
    	case ir.OADDSTR:
    		n := n.(*ir.AddStringExpr)
    		o.exprList(n.List)
    
    		if len(n.List) > 5 {
    			t := types.NewArray(types.Types[types.TSTRING], int64(len(n.List)))
    			n.Prealloc = o.newTemp(t, false)
    		}
    
    		// Mark string(byteSlice) arguments to reuse byteSlice backing
    		// buffer during conversion. String concatenation does not
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:33 UTC 2024
    - 42.7K bytes
    - Viewed (0)
Back to top