Doing some allocation with the alloc crate and I have stumbled upon a problem. As alloc returns a u8 pointer, I'm not able to write integers larger than 255 to that address. How would I fix that?
let ps = alloc(Layout::from_size_align(4096, 8).unwrap());
ps.write(399); // this line gives out of range error