Closed bartimaeusnek closed 10 months ago
Thanks for your contribution!
Sorry about the delay, this kinda got lost between the emails 💀
All looks good, the only thing I'm unsure about is how multitarget works on NuGet, as I've never published a multitarget package personally, but looking at this page it seems I don't have to change anything on the way I publish the package
This breaks compatibility with existing code that uses the array version of Pack. For higher versions of .NET, both array and Span should be available.
Allows for newer .NET versions to use
Span<PackingRectangle>
instead ofPackingRectangle[]
.Therefore allowing:
stackalloc
orNativeMemory.Alloc
if it has been wrapped with aSpan
(which is important to me and which is why i opened this PR).NET5 has been choosen as target since its the oldest framework that has
Span.Sort
, and therefore providing maximum compability.