8 ms·
You can actually turn a pointer into an usize without using an unsafe block. For example, here's how you'd do it with a reference: let the_bits = pointer a
by FreeFull 10y ago
You can actually turn a pointer into an usize without using an unsafe block. For example, here's how you'd do it with a reference:
let the_bits = pointer as *const _ as usize;