Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 103 for A1value (0.53 sec)

  1. src/internal/reflectlite/value.go

    func ValueOf(i any) Value {
    	if i == nil {
    		return Value{}
    	}
    	return unpackEface(i)
    }
    
    // assignTo returns a value v that can be assigned directly to typ.
    // It panics if v is not assignable to typ.
    // For a conversion to an interface type, target is a suggested scratch space to use.
    func (v Value) assignTo(context string, dst *abi.Type, target unsafe.Pointer) Value {
    	// if v.flag&flagMethod != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  2. src/log/slog/value.go

    // StringValue returns a new [Value] for a string.
    func StringValue(value string) Value {
    	return Value{num: uint64(len(value)), any: stringptr(unsafe.StringData(value))}
    }
    
    // IntValue returns a [Value] for an int.
    func IntValue(v int) Value {
    	return Int64Value(int64(v))
    }
    
    // Int64Value returns a [Value] for an int64.
    func Int64Value(v int64) Value {
    	return Value{num: uint64(v), any: KindInt64}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/value.go

    func (dv *DynValue) ExprValue() ref.Val {
    	return dv.exprValue
    }
    
    // Value returns the underlying value held by this reference.
    func (dv *DynValue) Value() interface{} {
    	return dv.value
    }
    
    // SetValue updates the underlying value held by this reference.
    func (dv *DynValue) SetValue(value interface{}) error {
    	dv.value = value
    	var err error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 20.5K bytes
    - Viewed (0)
  4. tensorflow/cc/experimental/libtf/value.h

          // initialized value.
          type_ = NONE;
        }
      }
      ~TaggedValue() { destroy(); }
    
      /// @brief Get the underlying value based on type.
      ///
      /// @tparam T The desired return type.
      /// @return The unwrapped value. If this `TaggedValue` type does not currently
      ///         contain a value of type `T`, the program terminates via a call to
      ///         `assert`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:23:45 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  5. internal/s3select/sql/value.go

    func FromTimestamp(t time.Time) *Value {
    	return &Value{value: t}
    }
    
    // FromNull creates a Value with Null value
    func FromNull() *Value {
    	return &Value{value: nil}
    }
    
    // FromMissing creates a Value with Missing value
    func FromMissing() *Value {
    	return &Value{value: Missing{}}
    }
    
    // FromBytes creates a Value from a []byte
    func FromBytes(b []byte) *Value {
    	return &Value{value: b}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Feb 25 20:31:19 UTC 2022
    - 20.2K bytes
    - Viewed (0)
  6. src/go/constant/value.go

    	}
    
    Error:
    	panic(fmt.Sprintf("invalid binary operation %v %s %v", x_, op, y_))
    }
    
    func add(x, y Value) Value { return BinaryOp(x, token.ADD, y) }
    func sub(x, y Value) Value { return BinaryOp(x, token.SUB, y) }
    func mul(x, y Value) Value { return BinaryOp(x, token.MUL, y) }
    func quo(x, y Value) Value { return BinaryOp(x, token.QUO, y) }
    
    // Shift returns the result of the shift expression x op s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 34K bytes
    - Viewed (0)
  7. src/internal/syscall/windows/registry/value.go

    	return k.setStringValue(name, SZ, value)
    }
    
    // SetExpandStringValue sets the data and type of a name value
    // under key k to value and EXPAND_SZ. The value must not contain a zero byte.
    func (k Key) SetExpandStringValue(name, value string) error {
    	return k.setStringValue(name, EXPAND_SZ, value)
    }
    
    // SetStringsValue sets the data and type of a name value
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 20:01:34 UTC 2023
    - 11K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/value.go

    	for _, x := range a {
    		x.Uses++
    	}
    }
    func (v *Value) SetArg(i int, w *Value) {
    	v.Args[i].Uses--
    	v.Args[i] = w
    	w.Uses++
    }
    func (v *Value) SetArgs1(a *Value) {
    	v.resetArgs()
    	v.AddArg(a)
    }
    func (v *Value) SetArgs2(a, b *Value) {
    	v.resetArgs()
    	v.AddArg(a)
    	v.AddArg(b)
    }
    func (v *Value) SetArgs3(a, b, c *Value) {
    	v.resetArgs()
    	v.AddArg(a)
    	v.AddArg(b)
    	v.AddArg(c)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:40:22 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/google/pprof/internal/graph/dotgraph.go

    	const shift = 0.7
    
    	// Saturation and value (in hsv colorspace) for background colors.
    	const bgSaturation = 0.1
    	const bgValue = 0.93
    
    	// Saturation and value (in hsv colorspace) for foreground colors.
    	const fgSaturation = 1.0
    	const fgValue = 0.7
    
    	// Choose saturation and value based on isBackground.
    	var saturation float64
    	var value float64
    	if isBackground {
    		saturation = bgSaturation
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 09 20:51:42 UTC 2022
    - 14.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/api.go

    func (tv TypeAndValue) IsBuiltin() bool {
    	return tv.mode == builtin
    }
    
    // IsValue reports whether the corresponding expression is a value.
    // Builtins are not considered values. Constant values have a non-
    // nil Value.
    func (tv TypeAndValue) IsValue() bool {
    	switch tv.mode {
    	case constant_, variable, mapindex, value, nilvalue, commaok, commaerr:
    		return true
    	}
    	return false
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top