Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 47 of 47 for indexByte (0.4 sec)

  1. src/internal/bytealg/indexbyte_ppc64x.s

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build ppc64 || ppc64le
    
    #include "go_asm.h"
    #include "textflag.h"
    
    TEXT ·IndexByte<ABIInternal>(SB),NOSPLIT|NOFRAME,$0-40
    	// R3 = byte array pointer
    	// R4 = length
    	MOVD	R6, R5		// R5 = byte
    	BR	indexbytebody<>(SB)
    
    TEXT ·IndexByteString<ABIInternal>(SB),NOSPLIT|NOFRAME,$0-32
    	// R3 = string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 16:10:29 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/plan9/syscall_plan9.go

    func atoi(b []byte) (n uint) {
    	n = 0
    	for i := 0; i < len(b); i++ {
    		n = n*10 + uint(b[i]-'0')
    	}
    	return
    }
    
    func cstring(s []byte) string {
    	i := bytes.IndexByte(s, 0)
    	if i == -1 {
    		i = len(s)
    	}
    	return string(s[:i])
    }
    
    func errstr() string {
    	var buf [ERRMAX]byte
    
    	RawSyscall(SYS_ERRSTR, uintptr(unsafe.Pointer(&buf[0])), uintptr(len(buf)), 0)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 22:24:28 UTC 2022
    - 7K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/structtag/structtag.go

    		case "json":
    			// JSON allows using spaces in the name, so skip it.
    			comma := strings.IndexRune(value, ',')
    			if comma < 0 {
    				continue
    			}
    			value = value[comma+1:]
    		}
    
    		if strings.IndexByte(value, ' ') >= 0 {
    			return errTagValueSpace
    		}
    	}
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  4. src/internal/filepathlite/path_windows.go

    }
    
    func isLocal(path string) bool {
    	if path == "" {
    		return false
    	}
    	if IsPathSeparator(path[0]) {
    		// Path rooted in the current drive.
    		return false
    	}
    	if stringslite.IndexByte(path, ':') >= 0 {
    		// Colons are only valid when marking a drive letter ("C:foo").
    		// Rejecting any path with a colon is conservative but safe.
    		return false
    	}
    	hasDots := false // contains . or .. path elements
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  5. src/net/http/routing_tree.go

    // The segment is returned unescaped, if possible.
    func firstSegment(path string) (seg, rest string) {
    	if path == "/" {
    		return "/", ""
    	}
    	path = path[1:] // drop initial slash
    	i := strings.IndexByte(path, '/')
    	if i < 0 {
    		i = len(path)
    	}
    	return pathUnescape(path[:i]), path[i:]
    }
    
    // matchingMethods adds to methodSet all the methods that would result in a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:43:24 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. src/net/http/internal/chunked.go

    	}
    	if cr.n == 0 {
    		cr.err = io.EOF
    	}
    }
    
    func (cr *chunkedReader) chunkHeaderAvailable() bool {
    	n := cr.r.Buffered()
    	if n > 0 {
    		peek, _ := cr.r.Peek(n)
    		return bytes.IndexByte(peek, '\n') >= 0
    	}
    	return false
    }
    
    func (cr *chunkedReader) Read(b []uint8) (n int, err error) {
    	for cr.err == nil {
    		if cr.checkEnd {
    			if n > 0 && cr.r.Buffered() < 2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  7. src/archive/tar/strconv.go

    }
    
    // parseString parses bytes as a NUL-terminated C-style string.
    // If a NUL byte is not found then the whole slice is returned as a string.
    func (*parser) parseString(b []byte) string {
    	if i := bytes.IndexByte(b, 0); i >= 0 {
    		return string(b[:i])
    	}
    	return string(b)
    }
    
    // formatString copies s into b, NUL-terminating if possible.
    func (f *formatter) formatString(b []byte, s string) {
    	if len(s) > len(b) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:28:42 UTC 2023
    - 9K bytes
    - Viewed (0)
Back to top