Celezt 0 Posted April 9 (edited) I'm creating my own Span implementation (similar to C++ and C#) that requires access to the internal storage of, e.g., `IList<T>`. I learned about `IArrayAccess<T>` from this topic: https://en.delphipraxis.net/topic/12713-how-to-accessmodify-underlying-records-of-ilist/, but it seems not to work, and I can't find anything about it in the source code. My current solution is to use pointer offsets to access the internal variables, but this is not a safe nor future-proof solution. Edited April 9 by Celezt Share this post Link to post
Celezt 0 Posted April 9 Okay, I seem to have added this topic to the wrong category. How do I delete or move this 😅? Share this post Link to post
Stefan Glienke 2128 Posted April 9 As I mentioned in the thread you referred to, this interface no longer exists. But as you might have noticed in the Spring commits in develop, I have my own Span implementation, and IList<T> has the method AsSpan, which returns this. 1 Share this post Link to post
Celezt 0 Posted April 9 Thanks for the answer! I missed your last comment about it no longer existing. Also, I was unaware of a Span implementation, but that sounds lovely! Share this post Link to post