-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Description
usize is 32 bits on a 32 bit system, so the storage would be limited to 4GB on such a system.
u64 should be enough for now. (std::fs::Metadata::len() is u64, so in theory it's still not enough to handle a huge amount of gigantic files).
To be exact, all uses of usize need changing here: https://github.com/datrs/random-access-storage/blob/50b947e688ef3ea5addd81991386ae389a66c1f6/src/lib.rs. And then the breakages in the other datrs modules need fixing.
Metadata
Metadata
Assignees
Labels
No labels