Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,551 for AArray (0.1 sec)

  1. src/go/types/array.go

    func NewArray(elem Type, len int64) *Array { return &Array{len: len, elem: elem} }
    
    // Len returns the length of array a.
    // A negative result indicates an unknown length.
    func (a *Array) Len() int64 { return a.len }
    
    // Elem returns element type of array a.
    func (a *Array) Elem() Type { return a.elem }
    
    func (a *Array) Underlying() Type { return a }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 927 bytes
    - Viewed (0)
  2. src/fmt/fmt_test.go

    	{"%g", 1.23456789e-3, "0.00123456789"},
    	{"%g", 1.23456789e20, "1.23456789e+20"},
    
    	// arrays
    	{"%v", array, "[1 2 3 4 5]"},
    	{"%v", iarray, "[1 hello 2.5 <nil>]"},
    	{"%v", barray, "[1 2 3 4 5]"},
    	{"%v", &array, "&[1 2 3 4 5]"},
    	{"%v", &iarray, "&[1 hello 2.5 <nil>]"},
    	{"%v", &barray, "&[1 2 3 4 5]"},
    
    	// slices
    	{"%v", slice, "[1 2 3 4 5]"},
    	{"%v", islice, "[1 hello 2.5 <nil>]"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  3. src/internal/types/testdata/spec/assignability.go

    }
    
    // proto-types for tests
    
    type (
    	_Basic     = int
    	_Array     = [10]int
    	_Slice     = []int
    	_Struct    = struct{ f int }
    	_Pointer   = *int
    	_Func      = func(x int) string
    	_Interface = interface{ m() int }
    	_Map       = map[string]int
    	_Chan      = chan int
    
    	Basic     _Basic
    	Array     _Array
    	Slice     _Slice
    	Struct    _Struct
    	Pointer   _Pointer
    	Func      _Func
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types/type.go

    	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)
    	}
    	if elem.NotInHeap() {
    		t.SetNotInHeap(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)
  5. src/cmd/compile/internal/typebits/typebits.go

    	case types.TSLICE:
    		// struct { byte *array; uintgo len; uintgo cap; }
    		if off&int64(types.PtrSize-1) != 0 {
    			base.Fatalf("typebits.Set: invalid TARRAY alignment, %v", t)
    		}
    		bv.Set(int32(off / int64(types.PtrSize))) // pointer in first slot (BitsPointer)
    
    	case types.TARRAY:
    		elt := t.Elem()
    		if elt.Size() == 0 {
    			// Short-circuit for #20739.
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 01:53:41 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/suggest/settings/ArraySettings.java

            }
            deleteFromArray(arraySettingsIndexName, settingsId, createId(key, value));
        }
    
        protected String createArraySettingsIndexName(final String settingsIndexName) {
            return settingsIndexName + "_array";
        }
    
        protected String createId(final String key, final Object value) {
            return encoder.encodeToString(("key:" + key + "value:" + value).getBytes(CoreLibConstants.CHARSET_UTF_8));
        }
    
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. src/encoding/gob/decgen.go

    // license that can be found in the LICENSE file.
    
    package gob
    
    import (
    	"math"
    	"reflect"
    )
    
    `
    
    const arrayHelper = `
    func dec%[2]sArray(state *decoderState, v reflect.Value, length int, ovfl error) bool {
    	// Can only slice if it is addressable.
    	if !v.CanAddr() {
    		return false
    	}
    	return dec%[2]sSlice(state, v.Slice(0, v.Len()), length, ovfl)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 14:15:38 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  8. src/encoding/gob/encgen.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package gob
    
    import (
    	"reflect"
    )
    
    `
    
    const arrayHelper = `
    func enc%[2]sArray(state *encoderState, v reflect.Value) bool {
    	// Can only slice if it is addressable.
    	if !v.CanAddr() {
    		return false
    	}
    	return enc%[2]sSlice(state, v.Slice(0, v.Len()))
    }
    `
    
    const sliceHelper = `
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:39:09 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/range.go

    			body = []ir.Node{rangeAssign(nrange, hv1)}
    		}
    
    	case k == types.TARRAY, k == types.TSLICE, k == types.TPTR: // TPTR is pointer-to-array
    		if nn := arrayRangeClear(nrange, v1, v2, a); nn != nil {
    			base.Pos = lno
    			return nn
    		}
    
    		// Element type of the iteration
    		var elem *types.Type
    		switch t.Kind() {
    		case types.TSLICE, types.TARRAY:
    			elem = t.Elem()
    		case types.TPTR:
    			elem = t.Elem().Elem()
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:33 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/celcoststability_test.go

    				"self.array.exists_one(e, e > 4)":                                22,
    				"!self.array.all(e, e < 2)":                                      21,
    				"!self.array.exists(e, e < 0)":                                   52,
    				"!self.array.exists_one(e, e == 2)":                              25,
    				"self.array.all(e, e < 100)":                                     43,
    				"size(self.array.filter(e, e%2 == 0)) == 3":                      68,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:20:16 UTC 2024
    - 80.2K bytes
    - Viewed (0)
Back to top