Skip to content

Message Boundaries and Parsing #52

Answered by XAMPPRocky
naveedpash asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for your question! Yeah, there should probably be an example of how to do this in the documentation, but what you need to do is use rasn::ber::de::Decoder directly, which has the decoded_len method, which returns how many octets have been parsed. So you can use that get any remaining octets in the input with input[decoder.decoded_len()..], and combine that with the new packet.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by naveedpash
Comment options

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

Comment options

You must be logged in to vote
0 replies
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