Jump to content

Celezt

Members
  • Content Count

    3
  • Joined

  • Last visited

Everything posted by Celezt

  1. 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.
  2. Celezt

    Spring4Delphi: IArrayAccess<T>

    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!
  3. Celezt

    Spring4Delphi: IArrayAccess<T>

    Okay, I seem to have added this topic to the wrong category. How do I delete or move this 😅?
×