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

Buffering/caching #24

Open
paulyoung opened this issue Apr 21, 2022 · 1 comment
Open

Buffering/caching #24

paulyoung opened this issue Apr 21, 2022 · 1 comment

Comments

@paulyoung
Copy link
Member

fatfs recommends using fscommon::BufStream

Note: it is recommended to wrap the underlying file struct in a buffering/caching object like BufStream from
fscommon crate. For example:

 let buf_stream = BufStream::new(img_file);
 let fs = fatfs::FileSystem::new(buf_stream, fatfs::FsOptions::new())?;

dfinity/cdk-rs#245 and dfinity/cdk-rs#247 appear to be doing something similar that won’t work out of the box here.

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

No branches or pull requests

1 participant