- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 138 for indexByte (0.12 sec)
-
src/cmd/vendor/golang.org/x/mod/sumdb/note/note.go
seen := make(map[nameHash]bool) seenUnverified := make(map[string]bool) numSig := 0 for len(sigs) > 0 { // Pull out next signature line. // We know sigs[len(sigs)-1] == '\n', so IndexByte always finds one. i := bytes.IndexByte(sigs, '\n') line := sigs[:i] sigs = sigs[i+1:] if !bytes.HasPrefix(line, sigPrefix) { return nil, errMalformedNote } line = line[len(sigPrefix):]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 12 20:38:21 UTC 2023 - 20.1K bytes - Viewed (0) -
src/cmd/internal/buildid/buildid.go
if err != nil && n == 0 { return "", err } tryGccgo := func() (string, error) { return readGccgoArchive(name, f) } // Archive header. for i := 0; ; i++ { // returns during i==3 j := bytes.IndexByte(data, '\n') if j < 0 { return tryGccgo() } line := data[:j] data = data[j+1:] switch i { case 0: if !bytes.Equal(line, bangArch) { return tryGccgo() } case 1:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 28 21:52:53 UTC 2020 - 9K bytes - Viewed (0) -
src/cmd/link/internal/ld/go.go
lib.Main = true } if line == "" { break } } // look for cgo section p0 := strings.Index(data, "\n$$ // cgo") var p1 int if p0 >= 0 { p0 += p1 i := strings.IndexByte(data[p0+1:], '\n') if i < 0 { fmt.Fprintf(os.Stderr, "%s: found $$ // cgo but no newline in %s\n", os.Args[0], filename) return } p0 += 1 + i p1 = strings.Index(data[p0:], "\n$$") if p1 < 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 22 16:48:30 UTC 2023 - 11.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/yaml/decoder.go
after := data[i:] if len(after) == 0 { // we can't read any more characters if atEOF { return len(data), data[:len(data)-sep], nil } return 0, nil, nil } if j := bytes.IndexByte(after, '\n'); j >= 0 { return i + j + 1, data[0 : i-sep], nil } return 0, nil, nil } // If we're at EOF, we have a final, non-terminated line. Return it. if atEOF { return len(data), data, nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 19 21:24:36 UTC 2021 - 10.2K bytes - Viewed (0) -
src/cmd/link/internal/loadelf/ldelf.go
ival uint64 } type elfAttributeList struct { data []byte err error } func (a *elfAttributeList) string() string { if a.err != nil { return "" } nul := bytes.IndexByte(a.data, 0) if nul < 0 { a.err = io.EOF return "" } s := string(a.data[:nul]) a.data = a.data[nul+1:] return s } func (a *elfAttributeList) uleb128() uint64 { if a.err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 15:12:12 UTC 2024 - 33.9K bytes - Viewed (0) -
src/strings/strings_test.go
} func TestIndexByte(t *testing.T) { for _, tt := range indexTests { if len(tt.sep) != 1 { continue } pos := IndexByte(tt.s, tt.sep[0]) if pos != tt.out { t.Errorf(`IndexByte(%q, %q) = %v; want %v`, tt.s, tt.sep[0], pos, tt.out) } } } func TestLastIndexByte(t *testing.T) { testCases := []IndexTest{ {"", "q", -1},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 12:58:37 UTC 2024 - 53K bytes - Viewed (0) -
src/cmd/trace/tasks.go
// For subsecond durations, blank all zeros before decimal point, // and all zeros between the decimal point and the first non-zero digit. if d < time.Second { dot := bytes.IndexByte(b, '.') for i := 0; i < dot; i++ { b[i] = ' ' } for i := dot + 1; i < len(b); i++ { if b[i] == '0' { b[i] = ' ' } else { break } } } return string(b)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 11.8K bytes - Viewed (0) -
src/net/cgo_unix.go
case _C_EAI_NONAME: return nil, newDNSError(errNoSuchHost, addr, "") default: return nil, newDNSError(addrinfoErrno(gerrno), addr, "") } } if i := bytealg.IndexByte(b, 0); i != -1 { b = b[:i] } return []string{absDomainName(string(b))}, nil } func cgoSockaddr(ip IP, zone string) (*_C_struct_sockaddr, _C_socklen_t) { if ip4 := ip.To4(); ip4 != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:23:45 UTC 2024 - 11.4K bytes - Viewed (0) -
src/debug/dwarf/line.go
npath := strings.Replace(path, "/", `\`, -1) // Get the host part, which must be non-empty. slash1 := strings.IndexByte(npath[2:], '\\') + 2 if slash1 > 2 { // Get the mount-point part, which must be non-empty. slash2 := strings.IndexByte(npath[slash1+1:], '\\') + slash1 + 1 if slash2 > slash1 { return path[:slash2], path[slash2:] } } } return "", path
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 23.5K bytes - Viewed (0) -
src/crypto/rsa/pss.go
// to zero. db[0] &= bitMask // If we don't know the salt length, look for the 0x01 delimiter. if sLen == PSSSaltLengthAuto { psLen := bytes.IndexByte(db, 0x01) if psLen < 0 { return ErrVerification } sLen = len(db) - psLen - 1 } // 10. If the emLen - hLen - sLen - 2 leftmost octets of DB are not zero
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:11:18 UTC 2024 - 11K bytes - Viewed (0)