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

fread() should only read a block from SD if it needs to #21

Open
avsa242 opened this issue Mar 25, 2023 · 0 comments
Open

fread() should only read a block from SD if it needs to #21

avsa242 opened this issue Mar 25, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@avsa242
Copy link
Owner

avsa242 commented Mar 25, 2023

Currently, it reads a block (even re-reading the current one) every time it's called, as long as the seek pointer is before the EOF.
Example: fread() is called to read 10 bytes. A full 512 byte sector is read in. If the next call only reads another 10 bytes, it should simply copy the data from the sector buffer instead of re-reading the sector.

@avsa242 avsa242 added the bug Something isn't working label Mar 25, 2023
@avsa242 avsa242 self-assigned this Mar 25, 2023
@avsa242 avsa242 added enhancement New feature or request and removed bug Something isn't working labels Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant