Finding length of decoded stream? #282
Answered
by
XAMPPRocky
olegkudrin
asked this question in
Q&A
-
Suppose there is a tail in the decoding buffer. Is there a way to find out the number of bytes consumed for decode? |
Beta Was this translation helpful? Give feedback.
Answered by
XAMPPRocky
Jun 30, 2024
Replies: 2 comments
-
Thank you for your question! You can if you use the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
XAMPPRocky
-
Everything is working, thank you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for your question! You can if you use the
Decoder
structs directly access thedecoded_len
to get the length consumed from the decode. https://docs.rs/rasn/latest/rasn/ber/de/struct.Decoder.html#method.decoded_len