prf::control::RequestValueView struct final

Borrowed view of one decoded scalar request value.

String/bytes variants point into request payload storage.

Public functions

auto as_bool(bool* out) const -> bool
Reads value as bool when type matches.
auto as_bytes(std::span<const uint8_t>* out) const -> bool
Reads value as borrowed byte-span when type matches.
auto as_double(double* out) const -> bool
Reads value as IEEE-754 double when type matches.
auto as_int64(int64_t* out) const -> bool
Reads value as signed 64-bit integer when type matches.
auto as_string(std::string_view* out) const -> bool
Reads value as borrowed string view when type matches.
auto as_uint64(uint64_t* out) const -> bool
Reads value as unsigned 64-bit integer when type matches.

Public variables

bool bool_value
std::span<const uint8_t> bytes_value
double double_value
int64_t int64_value
std::string_view string_value
RequestValueType type
uint64_t uint64_value