Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for makeError (0.15 sec)

  1. src/internal/zstd/bits.go

    }
    
    // backup steps back to the last byte we used.
    func (br *bitReader) backup() {
    	for br.cnt >= 8 {
    		br.off--
    		br.cnt -= 8
    	}
    }
    
    // makeError returns an error at the current offset wrapping a string.
    func (br *bitReader) makeError(msg string) error {
    	return br.r.makeError(int(br.off), msg)
    }
    
    // reverseBitReader reads a bit stream in reverse.
    type reverseBitReader struct {
    	r     *Reader // for error reporting
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 20:34:13 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  2. src/internal/zstd/huff.go

    		if w > 12 {
    			return 0, 0, r.makeError(off, "Huffman weight overflow")
    		}
    		weightMark[w]++
    		if w > 0 {
    			weightMask += 1 << (w - 1)
    		}
    	}
    	if weightMask == 0 {
    		return 0, 0, r.makeError(off, "bad Huffman weights")
    	}
    
    	tableBits = 32 - bits.LeadingZeros32(weightMask)
    	if tableBits > maxHuffmanBits {
    		return 0, 0, r.makeError(off, "bad Huffman weights")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 20:34:13 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  3. src/internal/zstd/literals.go

    	// The maximum size of one decompressed block is 128K,
    	// so we can't have more literals than that.
    	if regeneratedSize > 128<<10 {
    		return 0, nil, r.makeError(off, "literal size too large")
    	}
    
    	if raw {
    		// RFC 3.1.1.3.1.2.
    		if off+regeneratedSize > len(data) {
    			return 0, nil, r.makeError(off, "raw literal size too large")
    		}
    		outbuf = append(outbuf, data[off:off+regeneratedSize]...)
    		off += regeneratedSize
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 14:30:10 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  4. operator/pkg/validate/validate_test.go

    `,
    		},
    		{
    			desc: "BadTag",
    			yamlStr: `
    hub: ?illegal-tag!
    `,
    			wantErrs: makeErrors([]string{`invalid value Hub: ?illegal-tag!`}),
    		},
    		{
    			desc: "BadHub",
    			yamlStr: `
    hub: docker.io:tag/istio
    `,
    			wantErrs: makeErrors([]string{`invalid value Hub: docker.io:tag/istio`}),
    		},
    		{
    			desc: "GoodURL",
    			yamlStr: `
    installPackagePath: /local/file/path
    `,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Jun 25 11:44:31 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  5. operator/pkg/validate/validate_values_test.go

    			yamlStr: `
    global:
      proxy:
        includeIPRanges: "*,1.1.0.0/16,2.2.0.0/16"
    `,
    			wantErrs: makeErrors([]string{`global.proxy.includeIPRanges netip.ParsePrefix("*"): no '/'`}),
    		},
    		{
    			desc: "BadPortRange",
    			yamlStr: `
    global:
      proxy:
        excludeInboundPorts: "-1,444"
    `,
    			wantErrs: makeErrors([]string{`value global.proxy.excludeInboundPorts:-1 falls outside range [0, 65535]`}),
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 13:43:12 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. src/internal/reflectlite/set_test.go

    	{new(mapError), new(error), true},
    	{new(*mapError), new(error), true},
    }
    
    type notAnExpr struct{}
    
    func (notAnExpr) Pos() token.Pos { return token.NoPos }
    func (notAnExpr) End() token.Pos { return token.NoPos }
    func (notAnExpr) exprNode()      {}
    
    type notASTExpr interface {
    	Pos() token.Pos
    	End() token.Pos
    	exprNode()
    }
    
    type mapError map[string]string
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  7. src/text/template/option.go

    type missingKeyAction int
    
    const (
    	mapInvalid   missingKeyAction = iota // Return an invalid reflect.Value.
    	mapZeroValue                         // Return the zero value for the map element.
    	mapError                             // Error out
    )
    
    type option struct {
    	missingKey missingKeyAction
    }
    
    // Option sets options for the template. Options are described by
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  8. src/syscall/types_illumos_amd64.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build illumos
    
    // Illumos consts not present on Solaris. These are added manually rather than
    // auto-generated by mkerror.sh
    
    package syscall
    
    const (
    	LOCK_EX = 0x2
    	LOCK_NB = 0x4
    	LOCK_SH = 0x1
    	LOCK_UN = 0x8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 379 bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfrt/runtime_fallback/runtime_fallback_executor.cc

      CHECK(status.ok()) << "Failed to setup request context: " << status.message();
    
      auto req_ctx = std::move(builder).build();
      if (auto err = req_ctx.takeError())
        LOG(FATAL) << "Failed to build a request context";
    
      exec_ctx_ = std::make_unique<tfrt::ExecutionContext>(std::move(*req_ctx));
    }
    
    void RuntimeFallbackExecutor::Prepare(llvm::StringRef mlir_input) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 00:18:59 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top