Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 42 for Index (0.2 sec)

  1. src/archive/tar/strconv.go

    	n, perr := strconv.ParseInt(nStr, 10, 0) // Intentionally parse as native int
    	if perr != nil || n < 5 || n > int64(len(s)) {
    		return "", "", s, ErrHeader
    	}
    	n -= int64(len(nStr) + 1) // convert from index in s to index in rest
    	if n <= 0 {
    		return "", "", s, ErrHeader
    	}
    
    	// Extract everything between the space and the final newline.
    	rec, nl, rem := rest[:n-1], rest[n-1:n], rest[n:]
    	if nl != "\n" {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  2. 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)
  3. src/bytes/example_test.go

    	fmt.Println(bytes.HasSuffix([]byte("Amigo"), []byte("")))
    	// Output:
    	// true
    	// false
    	// false
    	// true
    }
    
    func ExampleIndex() {
    	fmt.Println(bytes.Index([]byte("chicken"), []byte("ken")))
    	fmt.Println(bytes.Index([]byte("chicken"), []byte("dmr")))
    	// Output:
    	// 4
    	// -1
    }
    
    func ExampleIndexByte() {
    	fmt.Println(bytes.IndexByte([]byte("chicken"), byte('k')))
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  4. api/go1.18.txt

    pkg go/types, method (*Term) Type() Type
    pkg go/types, method (*TypeList) At(int) Type
    pkg go/types, method (*TypeList) Len() int
    pkg go/types, method (*TypeParam) Constraint() Type
    pkg go/types, method (*TypeParam) Index() int
    pkg go/types, method (*TypeParam) Obj() *TypeName
    pkg go/types, method (*TypeParam) SetConstraint(Type)
    pkg go/types, method (*TypeParam) String() string
    pkg go/types, method (*TypeParam) Underlying() Type
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Feb 17 20:31:46 GMT 2023
    - 13K bytes
    - Viewed (0)
  5. 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)
  6. 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 May 07 11:14:38 GMT 2024
    - Last Modified: Thu Aug 08 18:44:16 GMT 2019
    - 452.6K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/testdata/amd64enc_extra.s

    	VADDPD (AX), Z1, K1, Z1          // 62f1f5495808
    	VADDPD 8(R10), Z10, K4, Z10      // 6251ad4c589208000000
    	VADDPD (R10)(AX*4), Z20, K7, Z20 // 62c1dd47582482
    	// EVEX gather (also tests Z as VSIB index).
    	VPGATHERDD 360(AX)(X2*4), K1, X1    // 62f27d09904c905a
    	VPGATHERDD 640(BP)(X15*8), K3, X14  // 62327d0b90b4fd80020000
    	VPGATHERDD 960(R10)(X25*2), K7, X24 // 62027d0790844ac0030000
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 11 18:32:50 GMT 2023
    - 57.6K bytes
    - Viewed (0)
  8. 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 May 07 11:14:38 GMT 2024
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Viewed (0)
  9. src/bufio/bufio_test.go

    func (r *negativeReader) Read([]byte) (int, error) { return -1, nil }
    
    func TestNegativeRead(t *testing.T) {
    	// should panic with a description pointing at the reader, not at itself.
    	// (should NOT panic with slice index error, for example.)
    	b := NewReader(new(negativeReader))
    	defer func() {
    		switch err := recover().(type) {
    		case nil:
    			t.Fatal("read did not panic")
    		case error:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  10. 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 May 07 11:14:38 GMT 2024
    - Last Modified: Thu May 02 22:43:51 GMT 2024
    - 279.6K bytes
    - Viewed (0)
Back to top