Closed ron-kuhn closed 1 month ago
Actually worked in version 8.2.0
@Sergio0694, I noticed a new version of CommunityToolkit.HighPerformance package (8.2.2). Is this fixed in that version?
It isn't, as this issue is still open. Haven't had time to triage this just yet 🙂
Just verified that the unittest still fails for 8.2.2. Should be easy fix described in the description.
Describe the bug
When creating Memory2D from a MemoryManager the internal offset should be in bytes but it is just this index offset (see line 381). The created Memory2D object will be pointing to an invalid region if using a generic other than byte or sbyte. See the code (xunit test below to reproduce.
Regression
Worked in 8.1.0
Steps to reproduce