Skip to content

split_by_apid not matching variable length decoding APID #86

Answered by ddasilva
jmbhughes asked this question in Q&A
Discussion options

You must be logged in to vote

You're right, it's hard to help without data! But here's what I can say:

The bit_length is the bit length of each array element. If you're not sure what the bit length is going to be, but you're sure the expanding field is going to be a clean number of bytes, then just set bit_length=8 and each array element will be one byte. The reason it's this way is because some people have expanding arrays of e.g. 10 bit unsigned integers and want them organized.

VariableLength.load() and split_by_apid() use different code to iterate through the packets, so it's possible something is up, Are you specifying the primary header fields manually? The docs tell you not to do this for VariableLength, but I …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jmbhughes
Comment options

Answer selected by jmbhughes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants