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? |
Answered by
XAMPPRocky
Jun 30, 2024
Replies: 2 comments
|
Thank you for your question! You can if you use the |
0 replies
Answer selected by
XAMPPRocky
|
Everything is working, thank you. |
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
Decoderstructs directly access thedecoded_lento get the length consumed from the decode. https://docs.rs/rasn/latest/rasn/ber/de/struct.Decoder.html#method.decoded_len