Skip to content

Use u64 for storage length #6

@khernyo

Description

@khernyo

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions