Instead of unsafe_convert-ing a Vec to a Ptr, we should take advantage of ContiguousRef by overloading Ref(::VecT{T}) to return a ContiguousRef{T}.
In theory, all the current C interop that passes in Vec data should continue to work, making this a small ticket. In practice, if things don't Just Work, then this becomes a medium-size issue.
Instead of unsafe_convert-ing a
Vec
to aPtr
, we should take advantage ofContiguousRef
by overloadingRef(::VecT{T})
to return aContiguousRef{T}
.In theory, all the current C interop that passes in Vec data should continue to work, making this a small ticket. In practice, if things don't Just Work, then this becomes a medium-size issue.