2 ms·
What's the utility of having a 128-bit pointer on a 64-bit system ?
by HarHarVeryFunny 3y ago
What's the utility of having a 128-bit pointer on a 64-bit system ?
- fathyb 3y ago`Box<[u8]>` stores the pointer and its length (2 x size_t), `std::unique_ptr<const uint8_t[]>` only stores the pointer. That's for slices, for dynamically sized types (eg. `Box<dyn ToString>`) it contains a pointer to the virtual table. https://doc.rust-lang.org/nomicon/exotic-sizes.html https://doc.rust-lang.org/nomicon/exotic-sizes.html