Closed asmello closed 1 month ago
Awesome! Should we do the same for PointerBuf
?
No, PointerBuf
doesn't have any unsafe code that relies on the internal layout of the type. 👍
Awesome, thanks.
heh, as an aside, I really need to get better about proofreading my comments written on my phone. So many incoherent sentences 🤦♂️
I missed this when first implementing the slice-like
Pointer
type. I think the compiler will use the same layout asstr
regardless, but it's important to make sure. This assumption is needed for the unsafe code used in this type to be sound.