Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 110 for indexByte (0.6 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/cmd/link/internal/ld/data.go

    	switch pkg {
    	case "runtime",
    		"sync/atomic",          // runtime may call to sync/atomic, due to go:linkname
    		"internal/abi",         // used by reflectcall (and maybe more)
    		"internal/bytealg",     // for IndexByte
    		"internal/chacha8rand", // for rand
    		"internal/cpu":         // for cpu features
    		return true
    	}
    	return strings.HasPrefix(pkg, "runtime/internal/") && !strings.HasSuffix(pkg, "_test")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (1)
  6. src/cmd/go/internal/load/pkg.go

    		} else {
    			i = bytes.Index(data, modulePrefix)
    			if i < 0 {
    				return ""
    			}
    			i++
    		}
    		line := data[i:]
    
    		// Cut line at \n, drop trailing \r if present.
    		if j := bytes.IndexByte(line, '\n'); j >= 0 {
    			line = line[:j]
    		}
    		if line[len(line)-1] == '\r' {
    			line = line[:len(line)-1]
    		}
    		line = line[len("module "):]
    
    		// If quoted, unquote.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  7. src/vendor/golang.org/x/net/http2/hpack/hpack.go

    // continue parsing.
    var errNeedMore = errors.New("need more data")
    
    type indexType int
    
    const (
    	indexedTrue indexType = iota
    	indexedFalse
    	indexedNever
    )
    
    func (v indexType) indexed() bool   { return v == indexedTrue }
    func (v indexType) sensitive() bool { return v == indexedNever }
    
    // returns errNeedMore if there isn't enough data available.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 14 18:30:34 UTC 2023
    - 14.7K bytes
    - Viewed (0)
  8. src/net/http/h2_bundle.go

    	defer http2littleBuf.Put(bp)
    	b := *bp
    	b = b[:runtime.Stack(b, false)]
    	// Parse the 4707 out of "goroutine 4707 ["
    	b = bytes.TrimPrefix(b, http2goroutineSpace)
    	i := bytes.IndexByte(b, ' ')
    	if i < 0 {
    		panic(fmt.Sprintf("No space found in %q", b))
    	}
    	b = b[:i]
    	n, err := http2parseUintBytes(b, 10, 64)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 364.1K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"ErrTooLarge", Var, 0},
    		{"Fields", Func, 0},
    		{"FieldsFunc", Func, 0},
    		{"HasPrefix", Func, 0},
    		{"HasSuffix", Func, 0},
    		{"Index", Func, 0},
    		{"IndexAny", Func, 0},
    		{"IndexByte", Func, 0},
    		{"IndexFunc", Func, 0},
    		{"IndexRune", Func, 0},
    		{"Join", Func, 0},
    		{"LastIndex", Func, 0},
    		{"LastIndexAny", Func, 0},
    		{"LastIndexByte", Func, 5},
    		{"LastIndexFunc", Func, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

    }
    
    Operation* InsertCast(OpBuilder& b, Location loc, Type dst_type, Value input) {
      Type element_type = getElementTypeOrSelf(dst_type);
      if (mlir::isa<IndexType>(element_type))
        return b.create<tensor::CastOp>(loc, dst_type, input);
      if (isa<TensorFlowDialect, BuiltinDialect>(element_type.getDialect()))
        return b.create<TF::CastOp>(loc, dst_type, input,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
Back to top