- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 110 for indexByte (0.55 sec)
-
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) -
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) -
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) -
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) -
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) -
src/cmd/cover/cover_test.go
directivePrefix := []byte("\n//go:") offset := 0 for { i := bytes.Index(source[offset:], directivePrefix) if i < 0 { break } i++ // skip newline p := source[offset+i:] j := bytes.IndexByte(p, '\n') if j < 0 { // reached EOF j = len(p) } directive := directiveInfo{ text: string(p[:j]), name: string(p[len(directivePrefix)-1 : j]), offset: offset + i, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 07 16:54:28 UTC 2023 - 18.4K bytes - Viewed (0) -
istioctl/pkg/kubeinject/kubeinject.go
// if the revision is "default", render templates with an empty revision if rev == util.DefaultRevisionName { rev = "" } injectorAddress := centralOpts.Xds index := strings.IndexByte(injectorAddress, ':') if index != -1 { injectorAddress = injectorAddress[:index] } injector, meshConfig, err := setupKubeInjectParameters(cliContext, &sidecarTemplate, &valuesConfig, rev, injectorAddress)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 29 02:29:02 UTC 2024 - 21.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_unix.go
signalNameMap[signal.name] = signal.num } }) return signalNameMap[s] } // 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 { i := bytes.IndexByte(n, 0) if i == -1 { i = len(n) } return i } // 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: Thu Oct 19 23:33:33 UTC 2023 - 16.5K bytes - Viewed (0) -
cmd/streaming-signature-v4.go
input := bufio.NewScanner(bytes.NewReader(valueBuffer.Bytes())) for input.Scan() { line := strings.TrimSpace(input.Text()) if line == "" { continue } // Find first separator. idx := strings.IndexByte(line, trailerKVSeparator[0]) if idx <= 0 || idx >= len(line) { if cr.debug { fmt.Printf("index, ':' not found in %q\n", line) } return errMalformedEncoding } key := line[:idx]
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu May 16 23:13:47 UTC 2024 - 18.2K bytes - Viewed (0) -
src/vendor/golang.org/x/net/idna/idna9.0.0.go
if l.slice != nil { return strings.Join(l.slice, ".") } return l.orig } func (l *labelIter) label() string { if l.slice != nil { return l.slice[l.i] } p := strings.IndexByte(l.orig[l.curStart:], '.') l.curEnd = l.curStart + p if p == -1 { l.curEnd = len(l.orig) } return l.orig[l.curStart:l.curEnd] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 19.2K bytes - Viewed (0)