- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 54 for findfunc (1.06 sec)
-
src/cmd/cgo/internal/testerrors/testdata/issue42580.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue 42580: cmd/cgo: shifting identifier position in ast package cgotest // typedef int (*intFunc) (); // // char* strarg = ""; // // int func_with_char(char* arg, void* dummy) // {return 5;} // // int* get_arr(char* arg, void* dummy) // {return NULL;} import "C" import "unsafe"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.3K bytes - Viewed (0) -
pkg/controller/disruption/disruption_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 50K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/compatibility.go
// FillFuncs is an optional map of custom functions to use to fill instances of particular types. FillFuncs map[reflect.Type]FillFunc JSON runtime.Serializer YAML runtime.Serializer Proto runtime.Serializer } // FillFunc is a function that populates all serializable fields in obj. // s and i are string and integer values relevant to the object being populated
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 16:38:32 UTC 2023 - 17.8K bytes - Viewed (0) -
src/runtime/mranges_test.go
base: 250, expect: 50, ranges: large, }, } for _, test := range tests { t.Run(test.name, func(t *testing.T) { a := MakeAddrRanges(test.ranges...) i := a.FindSucc(test.base) if i != test.expect { t.Fatalf("expected %d, got %d", test.expect, i) } }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 23 23:01:52 UTC 2020 - 5.7K bytes - Viewed (0) -
src/cmd/compile/internal/inline/inlheur/testdata/props/calls.go
// {"Flags":0,"ParamFlags":[0],"ResultFlags":[0]} // <endcallsites> // <endfuncpreamble> func T_call_scoring_in_noninlinable_func(x int, sl []int) int { if x == 101 { // Drive up the cost of inlining this funcfunc over the // regular threshold. for i := 0; i < 10; i++ { for j := 0; j < i; j++ { sl = append(sl, append(sl, append(sl, append(sl, x)...)...)...) sl = append(sl, sl[0], sl[1], sl[2])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 16 20:15:25 UTC 2023 - 7.1K bytes - Viewed (0) -
src/cmd/doc/pkg.go
for _, name := range value.Names { if match(symbol, name) { values = append(values, value) } } } return } // findFuncs finds the doc.Funcs that describes the symbol. func (pkg *Package) findFuncs(symbol string) (funcs []*doc.Func) { for _, fun := range pkg.doc.Funcs { if match(symbol, fun.Name) { funcs = append(funcs, fun) } } return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 08 20:15:52 UTC 2024 - 32K bytes - Viewed (0) -
src/slices/example_test.go
func ExampleMinFunc() { type Person struct { Name string Age int } people := []Person{ {"Gopher", 13}, {"Bob", 5}, {"Vera", 24}, {"Bill", 5}, } firstYoungest := slices.MinFunc(people, func(a, b Person) int { return cmp.Compare(a.Age, b.Age) }) fmt.Println(firstYoungest.Name) // Output: // Bob } func ExampleReplace() { names := []string{"Alice", "Bob", "Vera", "Zac"}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 17:28:50 UTC 2024 - 8.1K bytes - Viewed (0) -
src/runtime/mpagealloc_64bit.go
// any existing range. // // This will be used to look at what memory in the summary array is already // mapped before and after this new range. inUseIndex := p.inUse.findSucc(base) // Walk up the radix tree and map summaries in as needed. for l := range p.summary { // Figure out what part of the summary array this new address space needs.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 03 11:00:10 UTC 2024 - 9.3K bytes - Viewed (0) -
src/cmd/link/internal/wasm/asm.go
// PC_B the resume point inside of that function. The entry of the function has PC_B = 0. ldr.SetSymSect(s, sect) ldr.SetSymValue(s, int64(funcValueOffset+va/abi.MINFUNC)<<16) // va starts at zero va += uint64(abi.MINFUNC) return sect, n, va } type wasmDataSect struct { sect *sym.Section data []byte } var dataSects []wasmDataSect
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 16:17:48 UTC 2024 - 21.9K bytes - Viewed (0) -
src/cmd/cgo/internal/test/test.go
} } // function pointer variables func callBridge(f C.intFunc) int { return int(C.bridge_int_func(f)) } func callCBridge(f C.intFunc) C.int { return C.bridge_int_func(f) } func testFpVar(t *testing.T) { const expected = 42 f := C.intFunc(C.fortytwo) res1 := C.bridge_int_func(f) if r1 := int(res1); r1 != expected {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 48.5K bytes - Viewed (0)