Skip to main content

Module spvd_encode

Module spvd_encode 

Source
Expand description

PVD (pvData) Encoding Helpers

Minimal encoder for NTScalar introspection and value updates.

Functionsยง

decode_pv_request_fields
Parse a pvRequest structure from the INIT body bytes and return the list of requested top-level field names.
encode_decoded_value
Encode a DecodedValue back to PVA wire bytes.
encode_nt_enum_full
encode_nt_ndarray_full
encode_nt_payload_bitset
encode_nt_payload_bitset_parts
encode_nt_payload_filtered
Encode only the fields of an NtPayload whose names appear in 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_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 top-level field names.
encode_pv_value
Encode a PvValue tree to PVA wire bytes (values only, no descriptor).
encode_size_pvd
encode_string_pvd
encode_structure_desc
filter_structure_desc
Filter a StructureDesc to include only the listed top-level field names. Unknown names are silently ignored. If requested is empty the original descriptor is returned unchanged.
nt_enum_desc
nt_ndarray_desc
nt_payload_desc
nt_scalar_array_desc
nt_scalar_desc
nt_table_desc
pv_value_desc
Build a StructureDesc from a PvValue::Structure.