Skip to content
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

Fix resource loading #474

Merged
merged 4 commits into from
Mar 1, 2024
Merged

Fix resource loading #474

merged 4 commits into from
Mar 1, 2024

Conversation

JD557
Copy link
Owner

@JD557 JD557 commented Mar 1, 2024

In some instances, reading a byte array from an InputStream might not return all the requested bytes, even if the file has not reached it's end. In this situation, Minart was loading corrupted data (it was inserting zeros).

Now, when this happens, the byte reader falls back to a slower strategy for the rest of the batch.

This PR also fixes the resource loading order documentation, along with the exists() check, and avoids loading so many batches in the QOA reader.

@JD557 JD557 added this to the 0.6.0 milestone Mar 1, 2024
@JD557 JD557 merged commit 62afc56 into master Mar 1, 2024
15 checks passed
@JD557 JD557 deleted the fix-resources branch March 1, 2024 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant