Expand description
PVD (pvData) Encoding Helpers
Minimal encoder for NTScalar introspection and value updates.
Functionsยง
- compute_
changed_ bits - Walks
descin pre-order (matching the PVA wire convention that bit 0 represents the whole root structure and subsequent bits correspond to fields in pre-order) and returns a per-bit flag vector marking leaves whose value differs betweenprevandnext. - decode_
pv_ request_ fields - Parse a pvRequest structure from the INIT body bytes and return the list of requested field paths.
- decode_
pv_ request_ options - Decode the
record._optionskey/value pairs from a pvRequest body. - decoded_
values_ equal - Structural equality for
DecodedValuewith NaN treated as equal to NaN (avoids spurious monitor flaps when a float field is NaN on both sides). - encode_
decoded_ projected - Re-encode a
DecodedValue::Structureagainst a (possibly narrowed) descriptor, omitting fields that are not present in the descriptor. - encode_
decoded_ value - Encode a
DecodedValueback to PVA wire bytes. - encode_
nt_ enum_ full - encode_
nt_ ndarray_ full - encode_
nt_ payload_ bitset - encode_
nt_ payload_ bitset_ parts - encode_
nt_ payload_ delta - Encode a sparse monitor-data delta between
prevandnextprojected ontofiltered_desc. ReturnsNoneif nothing changed in the filtered view (caller should suppress the update). Otherwise returns(bitset, values)with only the changed leaves marked and encoded. - encode_
nt_ payload_ filtered - Encode only the fields of an
NtPayloadwhose paths appear infiltered_desc. The bitset and value bytes are computed against the filtered descriptor so that a client that received the filtered INIT descriptor will decode them correctly. - encode_
nt_ payload_ full - encode_
nt_ payload_ values_ for_ desc - Encode the value bytes of an
NtPayloadprojected onto a (possibly narrowed) descriptor. Fields not represented indescare omitted; sub-structures are encoded recursively. - encode_
nt_ scalar_ array_ full - encode_
nt_ scalar_ bitset - encode_
nt_ scalar_ bitset_ parts - encode_
nt_ scalar_ full - encode_
nt_ table_ full - encode_
pv_ request - Build a pvRequest structure for the given field paths.
- encode_
pv_ request_ with_ options - Build a pvRequest structure with extra
record._optionskey/value pairs. - encode_
pv_ value - Encode a
PvValuetree to PVA wire bytes (values only, no descriptor). - encode_
size_ pvd - encode_
string_ pvd - encode_
structure_ desc - filter_
structure_ desc - Filter a
StructureDescto include only the listed field paths. - nt_
enum_ desc - nt_
ndarray_ desc - nt_
ndarray_ desc_ default - nt_
payload_ desc - nt_
scalar_ array_ desc - nt_
scalar_ desc - nt_
table_ desc - pv_
value_ desc - Build a
StructureDescfrom aPvValue::Structure.