sarkit.crsd.DefinedPxpType
- class DefinedPxpType(format_string)
Transcoder for Per-x-Parameter (PxP) XML parameter types with a fixed size and format.
Similar to
PxpType, exceptdtypeandsizeare optional when usingset_elem- Parameters:
- format_string
str Binary format string that defines the PxP’s Format
- format_string
Methods
make_elem(tag, val)Create a new XML element.
parse_elem(elem)Returns a dict containing the sequence of subelements encoded in
elem.parse_subelements(elem)Returns an array containing the sub-elements encoded in
elem.set_elem(elem, val)Sets
elemnode using the sequence of subelements in the dictval.set_subelements(elem, val)Set
elemnode subelements usingval.