Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for makelist (0.16 sec)

  1. test/stackobj2.go

    	// next pointer for a linked list of stack objects
    	next *T
    	// duplicate of next, to stress test the pointer buffers
    	// used during stack tracing.
    	next2 *T
    }
    
    func main() {
    	makelist(nil, 10000)
    }
    
    func makelist(x *T, n int64) {
    	if n%2 != 0 {
    		panic("must be multiple of 2")
    	}
    	if n == 0 {
    		runtime.GC()
    		i := int64(1)
    		for ; x != nil; x, i = x.next, i+1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 03 19:54:29 UTC 2018
    - 1.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/common/maplist.go

    */
    
    package common
    
    import (
    	"fmt"
    	"strings"
    )
    
    // MapList provides a "lookup by key" operation for lists (arrays) with x-kubernetes-list-type=map.
    type MapList interface {
    	// Get returns the first element having given key, for all
    	// x-kubernetes-list-map-keys, to the provided object. If the provided object isn't itself a valid MapList element,
    	// get returns nil.
    	Get(interface{}) interface{}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 07 02:56:51 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/maplist.go

    // keyedItems. If the provided schema is _not_ an array with x-kubernetes-list-type=map, returns an
    // empty mapList.
    func makeMapList(sts *schema.Structural, items []interface{}) (rv common.MapList) {
    	return common.MakeMapList(&model.Structural{Structural: sts}, items)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 07 02:56:51 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  4. src/cmd/internal/src/xpos.go

    	if base.fileIndex >= 0 {
    		panic("PosBase already registered with a PosTable")
    	}
    
    	if t.indexMap == nil {
    		t.baseList = append(t.baseList, nil)
    		t.indexMap = make(map[*PosBase]int)
    		t.nameMap = make(map[string]int)
    	}
    
    	i := len(t.baseList)
    	t.indexMap[base] = i
    	t.baseList = append(t.baseList, base)
    
    	fileIndex, ok := t.nameMap[base.absFilename]
    	if !ok {
    		fileIndex = len(t.nameMap)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  5. src/cmd/internal/src/xpos_test.go

    			}
    			xpos = xposWith
    		}
    	}
    
    	if len(tab.baseList) != 1+len(tab.indexMap) { // indexMap omits nil
    		t.Errorf("table length discrepancy: %d != 1+%d", len(tab.baseList), len(tab.indexMap))
    	}
    
    	const wantLen = 4
    	if len(tab.baseList) != wantLen {
    		t.Errorf("got table length %d; want %d", len(tab.baseList), wantLen)
    	}
    
    	if got := tab.XPos(NoPos); got != NoXPos {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. src/cmd/internal/src/pos_test.go

    	}{
    		{0, ":0", 0, 0},
    		{makeLico(0, 0), ":0", 0, 0},
    		{makeLico(0, 1), ":0:1", 0, 1},
    		{makeLico(1, 0), ":1", 1, 0},
    		{makeLico(1, 1), ":1:1", 1, 1},
    		{makeLico(2, 3), ":2:3", 2, 3},
    		{makeLico(lineMax, 1), fmt.Sprintf(":%d", lineMax), lineMax, 1},
    		{makeLico(lineMax+1, 1), fmt.Sprintf(":%d", lineMax), lineMax, 1}, // line too large, stick with max. line
    		{makeLico(1, colMax), ":1", 1, colMax},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 14 23:50:26 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/base/login/SamlCredential.java

            final String key = fessConfig.getSystemProperty("saml.attribute.group.name", "memberOf");
            if (StringUtil.isNotBlank(key)) {
                final List<String> nameList = attributes.get(key);
                if (nameList != null) {
                    list.addAll(nameList);
                }
            }
            final String value = fessConfig.getSystemProperty("saml.default.groups");
            if (StringUtil.isNotBlank(value)) {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/mylasta/direction/FessFwAssistantDirector.java

        //                                                                              ======
        @Override
        protected void prepareAssistDirection(final FwAssistDirection direction) {
            direction.directConfig(nameList -> nameList.add("fess_config.properties"), "fess_env.properties");
        }
    
        // ===================================================================================
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/cel/openapi/maplist_test.go

    				"ki": int64(42),
    				"ks": "hello",
    				"v1": "b",
    			},
    		},
    	} {
    		t.Run(tc.name, func(t *testing.T) {
    			mapList := MakeMapList(tc.sts, tc.items)
    			for _, warmUp := range tc.warmUpQueries {
    				mapList.Get(warmUp)
    			}
    			actual := mapList.Get(tc.query)
    			if !reflect.DeepEqual(tc.expected, actual) {
    				t.Errorf("got: %v, expected %v", actual, tc.expected)
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 11 18:08:11 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/syntax/nodes.go

    		Path         *BasicLit // Path.Bad || Path.Kind == StringLit; nil means no path
    		decl
    	}
    
    	// NameList
    	// NameList      = Values
    	// NameList Type = Values
    	ConstDecl struct {
    		Group    *Group // nil means not part of a group
    		Pragma   Pragma
    		NameList []*Name
    		Type     Expr // nil means no type
    		Values   Expr // nil means no values
    		decl
    	}
    
    	// Name Type
    	TypeDecl struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:38 UTC 2023
    - 9K bytes
    - Viewed (0)
Back to top