(s string)
| 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)) } |
| 73 | func NewTypeValue(t Type) Value { return NewValue(TypeType, EncodeTypeValue(t)) } |
no outgoing calls