- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 110 for indexByte (0.44 sec)
-
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) -
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) -
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) -
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) -
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) -
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)