Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 138 for indexByte (0.14 sec)

  1. cmd/metacache-walk.go

    		forward := ""
    		if len(opts.ForwardTo) > 0 && strings.HasPrefix(opts.ForwardTo, current) {
    			forward = strings.TrimPrefix(opts.ForwardTo, current)
    			// Trim further directories and trailing slash.
    			if idx := strings.IndexByte(forward, '/'); idx > 0 {
    				forward = forward[:idx]
    			}
    		}
    		if contextCanceled(ctx) {
    			return ctx.Err()
    		}
    		if opts.Limit > 0 && objsReturned >= opts.Limit {
    			return nil
    		}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Jun 01 05:17:37 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  2. src/go/doc/doc.go

    		p.collectFuncs(t.Methods)
    	}
    }
    
    func (p *Package) collectFuncs(funcs []*Func) {
    	for _, f := range funcs {
    		if f.Recv != "" {
    			r := strings.TrimPrefix(f.Recv, "*")
    			if i := strings.IndexByte(r, '['); i >= 0 {
    				r = r[:i] // remove type parameters
    			}
    			p.syms[r+"."+f.Name] = true
    		} else {
    			p.syms[f.Name] = true
    		}
    	}
    }
    
    // NewFromFiles computes documentation for a package.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go

    func svcLoad(name *byte) unsafe.Pointer
    func svcUnload(name *byte, fnptr unsafe.Pointer) int64
    
    func (d *Dirent) NameString() string {
    	if d == nil {
    		return ""
    	}
    	s := string(d.Name[:])
    	idx := strings.IndexByte(s, 0)
    	if idx == -1 {
    		return s
    	} else {
    		return s[:idx]
    	}
    }
    
    func DecodeData(dest []byte, sz int, val uint64) {
    	for i := 0; i < sz; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  4. istioctl/pkg/validate/validate.go

    	case []any:
    		return transformInterfaceArray(v)
    	case map[any]any:
    		return transformInterfaceMap(v)
    	default:
    		return v
    	}
    }
    
    func servicePortPrefixed(n string) bool {
    	i := strings.IndexByte(n, '-')
    	if i >= 0 {
    		n = n[:i]
    	}
    	p := protocol.Parse(n)
    	return p == protocol.Unsupported
    }
    
    func handleNamespace(istioNamespace string) string {
    	if istioNamespace == "" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jan 22 17:58:52 UTC 2024
    - 15K bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/net/nettest/conntest.go

    	errCh := make(chan error)
    	go func() {
    		_, err := c.Write([]byte{0xff})
    		errCh <- err
    	}()
    	buf := make([]byte, 1024)
    	for {
    		n, err := c.Read(buf)
    		if n > 0 && bytes.IndexByte(buf[:n], 0xff) == n-1 {
    			break
    		}
    		if err != nil {
    			t.Errorf("unexpected Read error: %v", err)
    			break
    		}
    	}
    	if err := <-errCh; err != nil {
    		t.Errorf("unexpected Write error: %v", err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  6. src/syscall/syscall_unix.go

    	netbsd32Bit = runtime.GOOS == "netbsd" && sizeofPtr == 4
    )
    
    // clen returns the index of the first NULL byte in n or len(n) if n contains no NULL byte.
    func clen(n []byte) int {
    	if i := bytealg.IndexByte(n, 0); i != -1 {
    		return i
    	}
    	return len(n)
    }
    
    // Mmap manager, for use by operating system-specific implementations.
    
    type mmapper struct {
    	sync.Mutex
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 16:19:26 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modfetch/fetch.go

    // and adds it to goSum.m. The goSum lock must be held.
    func readGoSum(dst map[module.Version][]string, file string, data []byte) {
    	lineno := 0
    	for len(data) > 0 {
    		var line []byte
    		lineno++
    		i := bytes.IndexByte(data, '\n')
    		if i < 0 {
    			line, data = data, nil
    		} else {
    			line, data = data[:i], data[i+1:]
    		}
    		f := strings.Fields(string(line))
    		if len(f) == 0 {
    			// blank line; skip it
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  8. src/cmd/go/internal/search/search.go

    	if len(patterns) == 0 {
    		return []string{"."}
    	}
    	var out []string
    	for _, a := range patterns {
    		var p, v string
    		if build.IsLocalImport(a) || filepath.IsAbs(a) {
    			p = a
    		} else if i := strings.IndexByte(a, '@'); i < 0 {
    			p = a
    		} else {
    			p = a[:i]
    			v = a[i:]
    		}
    
    		// Arguments may be either file paths or import paths.
    		// As a courtesy to Windows developers, rewrite \ to /
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 31 20:33:05 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  9. src/time/zoneinfo_read.go

    func (d *dataIO) rest() []byte {
    	r := d.p
    	d.p = nil
    	return r
    }
    
    // Make a string by stopping at the first NUL
    func byteString(p []byte) string {
    	if i := bytealg.IndexByte(p, 0); i != -1 {
    		p = p[:i]
    	}
    	return string(p)
    }
    
    var errBadData = errors.New("malformed time zone information")
    
    // LoadLocationFromTZData returns a Location with the given name
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  10. src/net/net_windows_test.go

    		group = make(map[string]string)
    	}
    	lines := bytes.Split(out, []byte{'\r', '\n'})
    	for _, line := range lines {
    		if len(line) == 0 {
    			processGroup()
    			continue
    		}
    		i := bytes.IndexByte(line, ':')
    		if i == -1 {
    			t.Fatalf("line %q has no : in it", line)
    		}
    		group[string(line[:i])] = string(bytes.TrimSpace(line[i+1:]))
    	}
    	processGroup()
    
    	dups := make(map[string][]string)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.3K bytes
    - Viewed (0)
Back to top