pub fn encode_pv_request(fields: &[&str], is_be: bool) -> Vec<u8> ⓘExpand description
Build a pvRequest structure for the given field paths.
Each entry may be a simple top-level name (e.g. "value") or a
dot-separated nested path (e.g. "alarm.severity",
"timeStamp.secondsPastEpoch").
A bare name selects the entire sub-tree rooted at that field. Nested paths produce the corresponding nested sub-structure in the pvRequest so that a PVA server can filter down to the requested leaves.
Examples:
encode_pv_request(&["value", "alarm", "timeStamp"], false)→field(value,alarm,timeStamp)encode_pv_request(&["alarm.severity"], false)→field(alarm{severity})
The output is the full type-described pvRequest structure: a 0x80
tag followed by the structure descriptor and empty-struct field values.