- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of about 10,000 for Value (0.11 sec)
-
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: 2024-06-12 16:32 - Last Modified: 2024-05-16 16:12 - 13.3K bytes - Viewed (0) -
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: 2024-06-12 16:32 - Last Modified: 2024-05-07 17:01 - 13.6K bytes - Viewed (0) -
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: 2024-06-15 01:39 - Last Modified: 2022-10-10 22:05 - 20.5K bytes - Viewed (0) -
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: 2024-06-16 05:45 - Last Modified: 2024-04-13 05:23 - 20.4K bytes - Viewed (0) -
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: 2024-06-16 00:44 - Last Modified: 2022-02-25 20:31 - 20.2K bytes - Viewed (0) -
src/sync/atomic/value.go
package atomic import ( "unsafe" ) // A Value provides an atomic load and store of a consistently typed value. // The zero value for a Value returns nil from [Value.Load]. // Once [Value.Store] has been called, a Value must not be copied. // // A Value must not be copied after first use. type Value struct { v any } // efaceWords is interface{} internal representation.
Registered: 2024-06-12 16:32 - Last Modified: 2024-02-26 20:48 - 5.9K bytes - Viewed (0) -
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: 2024-06-12 16:32 - Last Modified: 2023-09-18 20:01 - 11K bytes - Viewed (0) -
src/reflect/value.go
func (v Value) CanAddr() bool { return v.flag&flagAddr != 0 } // CanSet reports whether the value of v can be changed. // A [Value] can be changed only if it is addressable and was not // obtained by the use of unexported struct fields. // If CanSet returns false, calling [Value.Set] or any type-specific // setter (e.g., [Value.SetBool], [Value.SetInt]) will panic. func (v Value) CanSet() bool {
Registered: 2024-06-12 16:32 - Last Modified: 2024-05-22 21:17 - 119.9K bytes - Viewed (0) -
src/internal/trace/value.go
package trace import "fmt" // Value is a dynamically-typed value obtained from a trace. type Value struct { kind ValueKind scalar uint64 } // ValueKind is the type of a dynamically-typed value from a trace. type ValueKind uint8 const ( ValueBad ValueKind = iota ValueUint64 ) // Kind returns the ValueKind of the value. // // It represents the underlying structure of the value.
Registered: 2024-06-12 16:32 - Last Modified: 2024-05-17 18:48 - 1.2K bytes - Viewed (0) -
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: 2024-06-12 16:32 - Last Modified: 2023-10-19 12:02 - 34K bytes - Viewed (0)