- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 138 for indexByte (0.18 sec)
-
src/cmd/cgo/internal/testshared/shared_test.go
// (Content ID in the new content-based build IDs.) const marker = `build id "` i := bytes.Index(data, []byte(marker)) if i < 0 { t.Fatal("cannot find build id in archive") } j := bytes.IndexByte(data[i+len(marker):], '"') if j < 0 { t.Fatal("cannot find build id in archive") } i += len(marker) + j - 1 if data[i] == 'a' { data[i] = 'b' } else { data[i] = 'a' }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Aug 26 01:54:41 UTC 2023 - 36.3K bytes - Viewed (0) -
src/regexp/regexp.go
// with the replacement text repl. // Inside repl, $ signs are interpreted as in [Regexp.Expand]. func (re *Regexp) ReplaceAll(src, repl []byte) []byte { n := 2 if bytes.IndexByte(repl, '$') >= 0 { n = 2 * (re.numSubexp + 1) } srepl := "" b := re.replaceAll(src, "", n, func(dst []byte, match []int) []byte { if len(srepl) != len(repl) { srepl = string(repl) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:50:01 UTC 2024 - 38.5K bytes - Viewed (0) -
src/cmd/link/internal/ld/pe.go
// of uinptrs this function consumes. Store the argsize and discard // the %n suffix if any. m.argsize = -1 extName := ldr.SymExtname(s) if i := strings.IndexByte(extName, '%'); i >= 0 { var err error m.argsize, err = strconv.Atoi(extName[i+1:]) if err != nil { ctxt.Errorf(s, "failed to parse stdcall decoration: %v", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 19:01:27 UTC 2023 - 48.8K bytes - Viewed (0) -
src/os/exec/exec.go
kv := env[n-1] // Reject NUL in environment variables to prevent security issues (#56284); // except on Plan 9, which uses NUL as os.PathListSeparator (#56544). if !nulOK && strings.IndexByte(kv, 0) != -1 { err = errors.New("exec: environment variable contains NUL") continue } i := strings.Index(kv, "=") if i == 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 20:13:53 UTC 2024 - 41.4K bytes - Viewed (0) -
src/encoding/xml/xml.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 18:46:41 UTC 2024 - 47.3K bytes - Viewed (0) -
src/encoding/json/decode_test.go
} // needed for re-marshaling tests func (u unmarshalerText) MarshalText() ([]byte, error) { return []byte(u.A + ":" + u.B), nil } func (u *unmarshalerText) UnmarshalText(b []byte) error { pos := bytes.IndexByte(b, ':') if pos == -1 { return errors.New("missing separator") } u.A, u.B = string(b[:pos]), string(b[pos+1:]) return nil } var _ encoding.TextUnmarshaler = (*unmarshalerText)(nil)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 16:40:14 UTC 2024 - 67.6K bytes - Viewed (0) -
src/net/http/client_test.go
t.Errorf("Log differs after %d common lines.\n\nGot:\n%s\n\nWant:\n%s\n", lines, got, want) } } func removeCommonLines(a, b string) (asuffix, bsuffix string, commonLines int) { for { nl := strings.IndexByte(a, '\n') if nl < 0 { return a, b, commonLines } line := a[:nl+1] if !strings.HasPrefix(b, line) { return a, b, commonLines } commonLines++ a = a[len(line):]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:30:50 UTC 2024 - 63.8K bytes - Viewed (0) -
src/testing/testing.go
} } type indenter struct { c *common } func (w indenter) Write(b []byte) (n int, err error) { n = len(b) for len(b) > 0 { end := bytes.IndexByte(b, '\n') if end == -1 { end = len(b) } else { end++ } // An indent of 4 spaces will neatly align the dashes with the status // indicator of the parent. line := b[:end]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 76.1K bytes - Viewed (0) -
src/cmd/go/internal/test/test.go
if !bytes.HasPrefix(data[i:], []byte("ok \t")) { if cache.DebugTest { fmt.Fprintf(os.Stderr, "testcache: %s: test output malformed\n", a.Package.ImportPath) } return false } j := bytes.IndexByte(data[i+len("ok \t"):], '\t') if j < 0 { if cache.DebugTest { fmt.Fprintf(os.Stderr, "testcache: %s: test output malformed\n", a.Package.ImportPath) } return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 71.9K bytes - Viewed (0) -
src/cmd/link/internal/ld/lib.go
prefix := "type:" if name[5] == '.' { prefix = "type:." } return prefix + base64.StdEncoding.EncodeToString(hash[:6]) } // instantiated symbol, replace type name in [] i := strings.IndexByte(name, '[') j := strings.LastIndexByte(name, ']') if j == -1 || j <= i { j = len(name) } hash := notsha256.Sum256([]byte(name[i+1 : j]))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 18:45:27 UTC 2024 - 88.6K bytes - Viewed (0)