-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
read_from_stream_buffered
produces different results than other readers
#57
Comments
So this discrepancy only happens when |
EDIT: used wrong data, updated to show what i used. Just tested, they all produce different errors if i remove
This is also a bit strange though, both the streaming readers error with Changing the data to make the "array length" bigger again changes the error for the "stream buffered" reader.
|
Right, so this needs to be mostly unified, and at the very least they should definitely be consistent whether they return |
Wait sorry my test data was wrong (i was changing it to see if i could understand more).
|
Yea I agree, if some data causes an error when deserializing it doesn't matter what the error is exactly but at least the parsed output should always be consistent. Maybe you have an idea of that the issue could be? I'll investigate a bit further :) On another note; I wonder what you think of Luckily i think its possible to work around it by implementing |
See the following example:
Because
read_from_file
will switch betweenread_from_stream_buffered
andread_from_buffer_copying
depending on the target (Linux x86 or not) this can also cause differences in parsing results between platforms. I happened to run into this when my tests would error on CI but not on my Windows dev machine.Couple of notes:
vec![0, 31, 0, 0, 2]
default_on_eof
was used. I would have expected the reader to reset to the position before it errored.The text was updated successfully, but these errors were encountered: