Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for Index (0.15 sec)

  1. doc/go1.17_spec.html

    <p>
    If <code>a</code> is not a map:
    </p>
    <ul>
    	<li>the index <code>x</code> must be of integer type or an untyped constant</li>
    	<li>a constant index must be non-negative and
    	    <a href="#Representability">representable</a> by a value of type <code>int</code></li>
    	<li>a constant index that is untyped is given type <code>int</code></li>
    	<li>the index <code>x</code> is <i>in range</i> if <code>0 &lt;= x &lt; len(a)</code>,
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/testdata/amd64error.s

    	// AVX512GATHER index/index #UD cases.
    	VPGATHERQQ (BP)(X2*2), K1, X2   // ERROR "index and destination registers should be distinct"
    	VPGATHERQQ (BP)(Y15*2), K1, Y15 // ERROR "index and destination registers should be distinct"
    	VPGATHERQQ (BP)(Z20*2), K1, Z20 // ERROR "index and destination registers should be distinct"
    	VPGATHERDQ (BP)(X2*2), K1, X2   // ERROR "index and destination registers should be distinct"
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 14 00:03:57 GMT 2023
    - 8.9K bytes
    - Viewed (0)
  3. src/bytes/bytes.go

    		}
    		if r == tr {
    			continue
    		}
    		return false
    	}
    
    	// One string is empty. Are both?
    	return len(s) == len(t)
    }
    
    // Index returns the index of the first instance of sep in s, or -1 if sep is not present in s.
    func Index(s, sep []byte) int {
    	n := len(sep)
    	switch {
    	case n == 0:
    		return 0
    	case n == 1:
    		return IndexByte(s, sep[0])
    	case n == len(s):
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  4. src/bytes/reader.go

    // Unlike a [Buffer], a Reader is read-only and supports seeking.
    // The zero value for Reader operates like a Reader of an empty slice.
    type Reader struct {
    	s        []byte
    	i        int64 // current reading index
    	prevRune int   // index of previous rune; or < 0
    }
    
    // Len returns the number of bytes of the unread portion of the
    // slice.
    func (r *Reader) Len() int {
    	if r.i >= int64(len(r.s)) {
    		return 0
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  5. src/cmd/cgo/ast.go

    		f.walk(n.Elts, ctxExpr, visit)
    	case *ast.ParenExpr:
    		f.walk(&n.X, context, visit)
    	case *ast.SelectorExpr:
    		f.walk(&n.X, ctxSelector, visit)
    	case *ast.IndexExpr:
    		f.walk(&n.X, ctxExpr, visit)
    		f.walk(&n.Index, ctxExpr, visit)
    	case *ast.SliceExpr:
    		f.walk(&n.X, ctxExpr, visit)
    		if n.Low != nil {
    			f.walk(&n.Low, ctxExpr, visit)
    		}
    		if n.High != nil {
    			f.walk(&n.High, ctxExpr, visit)
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/parse.go

    		}
    		num = int16(amount)
    	} else if p.peek() == '[' {
    		// parses an element: [Index]
    		p.get('[')
    		tok := p.get(scanner.Int)
    		index, err := strconv.ParseInt(tok.String(), 10, 16)
    		p.get(']')
    		if err != nil {
    			p.errorf("parsing element index: %s", err)
    		}
    		isIndex = true
    		isAmount = false
    		num = int16(index)
    	}
    
    	switch p.arch.Family {
    	case sys.ARM64:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  7. doc/go_spec.html

    <a href="#Length_and_capacity"><code>len</code></a>; unlike with arrays it may change during
    execution.  The elements can be addressed by integer <a href="#Index_expressions">indices</a>
    0 through <code>len(s)-1</code>.  The slice index of a
    given element may be less than the index of the same element in the
    underlying array.
    </p>
    <p>
    A slice, once initialized, is always associated with an underlying
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/asm/operand_test.go

    					wantName = test.output[:len(test.output)-4]
    					if strings.HasPrefix(wantName, "$") || strings.HasPrefix(wantName, "*") {
    						wantName = wantName[1:]
    					}
    					if i := strings.Index(wantName, "+"); i >= 0 {
    						wantName = wantName[:i]
    					}
    				}
    				if ok != isFuncSym || name != wantName {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 23.9K bytes
    - Viewed (0)
  9. api/go1.13.txt

    pkg syscall (netbsd-arm64-cgo), type IfaMsghdr struct, Addrs int32
    pkg syscall (netbsd-arm64-cgo), type IfaMsghdr struct, Flags int32
    pkg syscall (netbsd-arm64-cgo), type IfaMsghdr struct, Index uint16
    pkg syscall (netbsd-arm64-cgo), type IfaMsghdr struct, Metric int32
    pkg syscall (netbsd-arm64-cgo), type IfaMsghdr struct, Msglen uint16
    pkg syscall (netbsd-arm64-cgo), type IfaMsghdr struct, Pad_cgo_0 [6]uint8
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Aug 08 18:44:16 GMT 2019
    - 452.6K bytes
    - Viewed (0)
  10. api/go1.5.txt

    pkg go/types, method (*Scope) Pos() token.Pos
    pkg go/types, method (*Scope) String() string
    pkg go/types, method (*Scope) WriteTo(io.Writer, int, bool)
    pkg go/types, method (*Selection) Index() []int
    pkg go/types, method (*Selection) Indirect() bool
    pkg go/types, method (*Selection) Kind() SelectionKind
    pkg go/types, method (*Selection) Obj() Object
    pkg go/types, method (*Selection) Recv() Type
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Viewed (0)
Back to top