- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 138 for indexByte (0.97 sec)
-
src/cmd/go/internal/bug/bug.go
} return } fmt.Fprintf(w, "%s%s\n", prefix, bytes.TrimSpace(out)) } // firstLine returns the first line of a given byte slice. func firstLine(buf []byte) []byte { idx := bytes.IndexByte(buf, '\n') if idx > 0 { buf = buf[:idx] } return bytes.TrimSpace(buf) } // printGlibcVersion prints information about the glibc version. // It ignores failures.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 5.7K bytes - Viewed (0) -
src/html/escape.go
// always true. func UnescapeString(s string) string { populateMapsOnce.Do(populateMaps) i := strings.IndexByte(s, '&') if i < 0 { return s } b := []byte(s) dst, src := unescapeEntity(b, i, i) for len(s[src:]) > 0 { if s[src] == '&' { i = 0 } else { i = strings.IndexByte(s[src:], '&') } if i < 0 { dst += copy(b[dst:], s[src:]) break }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 13 07:00:18 UTC 2020 - 5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/internal/counter/parse.go
Count: make(map[string]uint64), } np := round(len(hdrPrefix), 4) hdrLen := *(*uint32)(unsafe.Pointer(&data[np])) if hdrLen > pageSize { return corrupt() } meta := data[np+4 : hdrLen] if i := bytes.IndexByte(meta, 0); i >= 0 { meta = meta[:i] } m := &mappedFile{ meta: string(meta), hdrLen: hdrLen, mapping: &mmap.Data{Data: data}, } lines := strings.Split(m.meta, "\n")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 14:38:01 UTC 2024 - 1.8K bytes - Viewed (0) -
pkg/config/kube/conversion.go
if len(name) >= grpcWebLen && strings.EqualFold(name[:grpcWebLen], grpcWeb) { return protocol.GRPCWeb } // Parse the port name to find the prefix, if any. i := strings.IndexByte(name, '-') if i >= 0 { name = name[:i] } p := protocol.Parse(name) if p == protocol.Unsupported { // Make TCP as default protocol for well know ports if protocol is not specified.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 02:03:58 UTC 2024 - 2.3K bytes - Viewed (0) -
src/debug/pe/string.go
"encoding/binary" "fmt" "internal/saferio" "io" ) // cstring converts ASCII byte sequence b to string. // It stops once it finds 0 or reaches end of b. func cstring(b []byte) string { i := bytes.IndexByte(b, 0) if i == -1 { i = len(b) } return string(b[:i]) } // StringTable is a COFF string table. type StringTable []byte func readStringTable(fh *FileHeader, r io.ReadSeeker) (StringTable, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 07 19:06:17 UTC 2023 - 1.8K bytes - Viewed (0) -
src/cmd/go/internal/web/url.go
// per https://blogs.msdn.microsoft.com/ie/2006/12/06/file-uris-in-windows/. if vol := filepath.VolumeName(path); vol != "" { if strings.HasPrefix(vol, `\\`) { path = filepath.ToSlash(path[2:]) i := strings.IndexByte(path, '/') if i < 0 { // A degenerate case. // \\host.example.com (without a share name) // becomes // file://host.example.com/ return &url.URL{ Scheme: "file", Host: path,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 13:43:51 UTC 2019 - 2K bytes - Viewed (0) -
src/index/suffixarray/gen.go
buf.WriteString("\n\n// Code generated by go generate; DO NOT EDIT.\n\npackage suffixarray\n") for { x := bytes.Index(data, []byte("\nfunc ")) if x < 0 { break } data = data[x:] p := bytes.IndexByte(data, '(') if p < 0 { p = len(data) } name := string(data[len("\nfunc "):p]) x = bytes.Index(data, []byte("\n}\n")) if x < 0 { log.Fatalf("cannot find end of func %s", name) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 1.9K bytes - Viewed (0) -
src/cmd/internal/objabi/path.go
} } return string(p) } // PrefixToPath is the inverse of PathToPrefix, replacing escape sequences with // the original character. func PrefixToPath(s string) (string, error) { percent := strings.IndexByte(s, '%') if percent == -1 { return s, nil } p := make([]byte, 0, len(s)) for i := 0; i < len(s); { if s[i] != '%' { p = append(p, s[i]) i++ continue } if i+2 >= len(s) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 13:56:25 UTC 2023 - 1.9K bytes - Viewed (0) -
src/internal/bytealg/indexbyte_wasm.s
// Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "go_asm.h" #include "textflag.h" TEXT ยทIndexByte(SB), NOSPLIT, $0-40 I64Load b_base+0(FP) I32WrapI64 I32Load8U c+24(FP) I64Load b_len+8(FP) I32WrapI64 Call memchr<>(SB) I64ExtendI32S Set R0 Get SP I64Const $-1 Get R0 I64Load b_base+0(FP)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 29 03:59:19 UTC 2019 - 2.5K bytes - Viewed (0) -
src/net/http/pattern.go
} p := &pattern{str: s, method: method} if found { off = len(method) + 1 } i := strings.IndexByte(rest, '/') if i < 0 { return nil, errors.New("host/path missing /") } p.host = rest[:i] rest = rest[i:] if j := strings.IndexByte(p.host, '{'); j >= 0 { off += j return nil, errors.New("host contains '{' (missing initial '/'?)") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 16:36:30 UTC 2024 - 15.3K bytes - Viewed (0)