-
Notifications
You must be signed in to change notification settings - Fork 67
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
filesystem: Move pre-compiler checks to interface #673
Conversation
788ed5e
to
41346e5
Compare
41346e5
to
1e417c7
Compare
1e417c7
to
228ff81
Compare
Tested on a windows computer : However i wonder if we could not have a way to forgo the check and change this
Into and just hide the whether the file is read from a buffer or from the filesystem.
It seems like it should be feasible without too much hassle but if i'm wrong having the asset read from the iso should be the priority preference in expression be damned. |
I had the same thought to reduce duplicate code but couldn't find a satisfying implementation. The issue is that a static lib like And since I want components to be independent of each other, I don't want to have some monster reader common class. |
Wouldn't going the other way around and having things written as
Maybe not exactly like this something of the effect of the filesystem is in charge of getting the data to the reader and then reader do its job. |
So just always reading the whole file and using the buffer implementation. It's worth considering and would be a non trivial change in the way we interact with our files. |
Seeing as the Open method of many file reader is mostly setting up a stream for ReadFile couldn't we just make ReadFile accessible to LND and charge FileSystem with the job of setting up the stream?
Where GetData would return an istream, wouldn't something like 73c4fe6 i did here do ? (The android Filesystem compiles but is blindcoded so i do not guarantee it runs) |
Superseded by #706 |
This allows for more interfaces to use custom read functions than android.
Such a usecase would be single ISO reads.