(b []byte)
| 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)) } |
| 72 | func NewNet(p netip.Prefix) Value { return NewValue(TypeNet, EncodeNet(p)) } |