we want people to use these safer types because they would be less error prone
we want people to use these safer types because they would be less error prone
IntPtr == nintwhich is why it is like it is, i should change itbyte[] where Span/ROSpan make more sensePtr<T>, but i dont think its smart enough to filter by thatthing.AsPtr2D at the top of the listPtrLike<T> or maybe PtrRepresentable<T> to be even more verbosePtrRepresentable<T> would indicate that whatever you pass in can be represented by a pointer, but its kindof a mouthful to type?PtrBacked<T>?
PtrBacked<T> would probably let the "knows just enough to be dangerous" crowd intutiively realize arrays work hereT* implicitly converts to Ptr<T>IntPtr == nintbyte[]SpanROSpanPtr<T>Ptr<T>thing.AsPtr2DPtrLike<T>PtrRepresentable<T>PtrRepresentable<T>PtrBacked<T>PtrBacked<T>T*