Suppose we have a memory maped file. This is basically a *const u8.
Now, as long as things are aligned, it is straight forward to convert i32 / u32 / f32 / i64 / u64 / f64 in the file, in a 0-copying mannger, to a corresponding &i32, &u32, ...
Question: Is there a way to store a &[u8] in a memory mapped file so that we can in a 0-copying manner get a &[u8] ?
Here by 0-copying, I really mean O(1) memory copying, where it's fine if we create some structure but I don't want to have to make a copy of the entire &[u8].