Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 43 for skip (0.13 sec)

  1. src/bufio/bufio.go

    	}
    	if n == 0 {
    		return
    	}
    
    	b.lastByte = -1
    	b.lastRuneSize = -1
    
    	remain := n
    	for {
    		skip := b.Buffered()
    		if skip == 0 {
    			b.fill()
    			skip = b.Buffered()
    		}
    		if skip > remain {
    			skip = remain
    		}
    		b.r += skip
    		remain -= skip
    		if remain == 0 {
    			return n, nil
    		}
    		if b.err != nil {
    			return n - remain, b.readErr()
    		}
    	}
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 12 14:39:08 GMT 2023
    - 21.8K bytes
    - Viewed (0)
  2. src/bufio/scan.go

    // never return an empty string. The definition of space is set by
    // unicode.IsSpace.
    func ScanWords(data []byte, atEOF bool) (advance int, token []byte, err error) {
    	// Skip leading spaces.
    	start := 0
    	for width := 0; start < len(data); start += width {
    		var r rune
    		r, width = utf8.DecodeRune(data[start:])
    		if !isSpace(r) {
    			break
    		}
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  3. api/go1.13.txt

    pkg syscall (netbsd-arm64-cgo), const DLT_SITA ideal-int
    pkg syscall (netbsd-arm64-cgo), const DLT_SLIP = 8
    pkg syscall (netbsd-arm64-cgo), const DLT_SLIP_BSDOS = 13
    pkg syscall (netbsd-arm64-cgo), const DLT_SLIP_BSDOS ideal-int
    pkg syscall (netbsd-arm64-cgo), const DLT_SLIP ideal-int
    pkg syscall (netbsd-arm64-cgo), const DLT_SUNATM = 123
    pkg syscall (netbsd-arm64-cgo), const DLT_SUNATM ideal-int
    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)
  4. src/bytes/bytes.go

    	a := make([][]byte, n)
    	na := 0
    	fieldStart := 0
    	i := 0
    	// Skip spaces in the front of the input.
    	for i < len(s) && asciiSpace[s[i]] != 0 {
    		i++
    	}
    	fieldStart = i
    	for i < len(s) {
    		if asciiSpace[s[i]] == 0 {
    			i++
    			continue
    		}
    		a[na] = s[fieldStart:i:i]
    		na++
    		i++
    		// Skip spaces in between fields.
    		for i < len(s) && asciiSpace[s[i]] != 0 {
    			i++
    		}
    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)
  5. doc/go1.17_spec.html

    For instance, this example:
    </p>
    
    <pre>
    	goto L  // BAD
    	v := 3
    L:
    </pre>
    
    <p>
    is erroneous because the jump to label <code>L</code> skips
    the creation of <code>v</code>.
    </p>
    
    <p>
    A "goto" statement outside a <a href="#Blocks">block</a> cannot jump to a label inside that block.
    For instance, this example:
    </p>
    
    <pre>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  6. src/archive/tar/common.go

    func invertSparseEntries(src []sparseEntry, size int64) []sparseEntry {
    	dst := src[:0]
    	var pre sparseEntry
    	for _, cur := range src {
    		if cur.Length == 0 {
    			continue // Skip empty fragments
    		}
    		pre.Length = cur.Offset - pre.Offset
    		if pre.Length > 0 {
    			dst = append(dst, pre) // Only add non-empty fragments
    		}
    		pre.Offset = cur.endOffset()
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  7. src/cmd/asm/internal/asm/parse.go

    // ok=false.
    //
    // line may reuse the memory from scratch.
    func (p *Parser) line(scratch [][]lex.Token) (word, cond string, operands [][]lex.Token, ok bool) {
    next:
    	// Skip newlines.
    	var tok lex.ScanToken
    	for {
    		tok = p.nextToken()
    		// We save the line number here so error messages from this instruction
    		// are labeled with this line. Otherwise we complain after we've absorbed
    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)
  8. src/bytes/bytes_test.go

    		Trim(x, " ")
    	}
    }
    
    func BenchmarkIndexPeriodic(b *testing.B) {
    	key := []byte{1, 1}
    	for _, skip := range [...]int{2, 4, 8, 16, 32, 64} {
    		b.Run(fmt.Sprintf("IndexPeriodic%d", skip), func(b *testing.B) {
    			buf := make([]byte, 1<<16)
    			for i := 0; i < len(buf); i += skip {
    				buf[i] = 1
    			}
    			for i := 0; i < b.N; i++ {
    				Index(buf, key)
    			}
    		})
    	}
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  9. src/archive/tar/writer.go

    // The bytes read must match the number of remaining bytes in the current file.
    //
    // If the current file is sparse and r is an io.ReadSeeker,
    // then readFrom uses Seek to skip past holes defined in Header.SparseHoles,
    // assuming that skipped regions are all NULs.
    // This always reads the last byte to ensure r is the right size.
    //
    // TODO(dsnet): Re-export this when adding sparse file support.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  10. src/cmd/cgo/gcc.go

    	}
    
    	for i, n := range names {
    		switch sniff[i] {
    		default:
    			if sniff[i]&notDeclared != 0 && optional[n] {
    				// Ignore optional undeclared identifiers.
    				// Don't report an error, and skip adding n to the needType array.
    				continue
    			}
    			error_(f.NamePos[n], "could not determine kind of name for C.%s", fixGo(n.Go))
    		case notStrLiteral | notType:
    			n.Kind = "iconst"
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
Back to top