Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 104 for numaux (0.27 sec)

  1. src/reflect/type.go

    	// It panics if the type's Kind is not Func.
    	NumIn() int
    
    	// NumOut returns a function type's output parameter count.
    	// It panics if the type's Kind is not Func.
    	NumOut() int
    
    	// Out returns the type of a function type's i'th output parameter.
    	// It panics if the type's Kind is not Func.
    	// It panics if i is not in the range [0, NumOut()).
    	Out(i int) Type
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/objfile.go

    			nreloc += uint32(len(s.R))
    		}
    	}
    	w.Uint32(nreloc)
    
    	// Symbol Info indexes
    	h.Offsets[goobj.BlkAuxIdx] = w.Offset()
    	naux := uint32(0)
    	for _, list := range lists {
    		for _, s := range list {
    			w.Uint32(naux)
    			naux += uint32(nAuxSym(s))
    		}
    	}
    	w.Uint32(naux)
    
    	// Data indexes
    	h.Offsets[goobj.BlkDataIdx] = w.Offset()
    	dataOff := int64(0)
    	for _, list := range lists {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24K bytes
    - Viewed (0)
  3. src/net/rpc/server.go

    			}
    			continue
    		}
    		// Method needs one out.
    		if mtype.NumOut() != 1 {
    			if logErr {
    				log.Printf("rpc.Register: method %q has %d output parameters; needs exactly one\n", mname, mtype.NumOut())
    			}
    			continue
    		}
    		// The return type of the method must be error.
    		if returnType := mtype.Out(0); returnType != typeOfError {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  4. src/internal/abi/type.go

    }
    
    func (t *FuncType) In(i int) *Type {
    	return t.InSlice()[i]
    }
    
    func (t *FuncType) NumIn() int {
    	return int(t.InCount)
    }
    
    func (t *FuncType) NumOut() int {
    	return int(t.OutCount & (1<<15 - 1))
    }
    
    func (t *FuncType) Out(i int) *Type {
    	return (t.OutSlice()[i])
    }
    
    func (t *FuncType) InSlice() []*Type {
    	uadd := unsafe.Sizeof(*t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  5. src/math/rand/v2/regress_test.go

    	for i := 0; i < n; i++ {
    		if *update && i > 0 {
    			fmt.Fprintf(&buf, "\n")
    		}
    		r := New(NewPCG(1, 2))
    		rv := reflect.ValueOf(r)
    		m := rv.Type().Method(i)
    		mv := rv.Method(i)
    		mt := mv.Type()
    		if mt.NumOut() == 0 {
    			continue
    		}
    		for repeat := 0; repeat < 20; repeat++ {
    			var args []reflect.Value
    			var argstr string
    			if mt.NumIn() == 1 {
    				var x any
    				switch mt.In(0).Kind() {
    				default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:03:11 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/third_party/forked/golang/reflect/deep_equal.go

    	ft := fv.Type()
    	if ft.Kind() != reflect.Func {
    		return fmt.Errorf("expected func, got: %v", ft)
    	}
    	if ft.NumIn() != 2 {
    		return fmt.Errorf("expected two 'in' params, got: %v", ft)
    	}
    	if ft.NumOut() != 1 {
    		return fmt.Errorf("expected one 'out' param, got: %v", ft)
    	}
    	if ft.In(0) != ft.In(1) {
    		return fmt.Errorf("expected arg 1 and 2 to have same type, but got %v", ft)
    	}
    	var forReturnType bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 20 17:18:42 UTC 2022
    - 10.8K bytes
    - Viewed (0)
  7. src/go/printer/testdata/declarations.golden

    		xxxxxxx	struct {
    			_, _	int
    			_	float
    		}
    		xxxx	chan<- string
    	)
    }
    
    // alignment of "=" in consecutive lines (extended example from issue 1414)
    const (
    	umax	uint	= ^uint(0)		// maximum value for a uint
    	bpu		= 1 << (5 + umax>>63)	// bits per uint
    	foo
    	bar	= -1
    )
    
    // typical enum
    const (
    	a	MyType	= iota
    	abcd
    	b
    	c
    	def
    )
    
    // excerpt from godoc.go
    var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.2K bytes
    - Viewed (0)
  8. src/math/rand/regress_test.go

    	n := rv.NumMethod()
    	p := 0
    	if *printgolden {
    		fmt.Printf("var regressGolden = []interface{}{\n")
    	}
    	for i := 0; i < n; i++ {
    		m := rv.Type().Method(i)
    		mv := rv.Method(i)
    		mt := mv.Type()
    		if mt.NumOut() == 0 {
    			continue
    		}
    		r.Seed(0)
    		for repeat := 0; repeat < 20; repeat++ {
    			var args []reflect.Value
    			var argstr string
    			if mt.NumIn() == 1 {
    				var x any
    				switch mt.In(0).Kind() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 17.8K bytes
    - Viewed (0)
  9. src/testing/quick/quick.go

    	if config == nil {
    		config = &defaultConfig
    	}
    
    	fVal, fType, ok := functionAndType(f)
    	if !ok {
    		return SetupError("argument is not a function")
    	}
    
    	if fType.NumOut() != 1 {
    		return SetupError("function does not return one value")
    	}
    	if fType.Out(0).Kind() != reflect.Bool {
    		return SetupError("function does not return a bool")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:47 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/schema-extra-example.md

    `example` nos padrões. Versões recentes do JSON Schema definem um campo <a href="https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.9.5" class="external-link" target="_blank">`examples`</a>, mas o OpenAPI 3.0.3 é baseado numa versão mais antiga do JSON Schema que não tinha `examples`.
    
    Por isso, o OpenAPI 3.0.3 definiu o seu próprio <a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#fixed-fields-20" class="external-link" target=...
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top