Skip to content

more tolerant NoSeek #252

Answered by kitlith
BKSalman asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like you have a different issue than what "NoSeek" is trying to solve, where you don't know where your data structure starts in your stream (or you're compensating for missing bytes, etc) in which case, yeah, you need to buffer it so you can seek around and try again.

One thing to note is that the size in memory of a binrw struct is not always the same as the number of bytes read from the stream. Unfortunately, we don't have an easy way to get the latter at the moment, but since you're using a cursor, you can extract it from the current cursor position.

If the issue is initial stream synchronization, (I.e. you're looking at a stream of events and don't know whether you're at the sta…

Replies: 2 comments

Comment options

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