(b bool)
| 66 | func NewFloat32(f float32) Value { return newNativeValue(TypeFloat32, math.Float64bits(float64(f))) } |
| 67 | func NewFloat64(f float64) Value { return newNativeValue(TypeFloat64, math.Float64bits(f)) } |
| 68 | func NewBool(b bool) Value { return newNativeValue(TypeBool, boolToUint64(b)) } |
| 69 | func NewBytes(b []byte) Value { return NewValue(TypeBytes, b) } |
| 70 | func NewString(s string) Value { return Value{TypeString, unsafe.StringData(s), uint64(len(s))} } |
| 71 | func NewIP(a netip.Addr) Value { return NewValue(TypeIP, EncodeIP(a)) } |
no test coverage detected