Commit Graph
849 Commits
Author SHA1 Message Date
Sergio Pedri bb4e663c74 Added Memory<T>.AsMemory2D extensions 2020-10-08 23:00:32 +02:00
Sergio Pedri abae23e913 Fixed a bug in [ReadOnly]Memory2D<T>.TryGetMemory
Need the explicit "in" to pick the right overload
2020-10-08 23:00:32 +02:00
Sergio Pedri 108bbbef0b Switched Memory2D<T> constructor to MemoryManager<T> 2020-10-08 23:00:32 +02:00
Sergio Pedri c708e59d37 Minor code refactoring 2020-10-08 23:00:32 +02:00
Sergio Pedri 00495f78f5 Minor code refactoring 2020-10-08 23:00:32 +02:00
Sergio Pedri 4d03a2757d Removed unnecessary generic type constraint 2020-10-08 23:00:32 +02:00
Sergio Pedri f52c5d4348 Improved [ReadOnly]Memory2D<T>.Equals(object) 2020-10-08 23:00:32 +02:00
Sergio Pedri ae7b7354d9 Added downlevel RuntimeHelpers support to HashCode<T> 2020-10-08 23:00:32 +02:00
Sergio Pedri c648c7fc40 Added more unit tests for Span2D<T>(void*) 2020-10-08 23:00:31 +02:00
Sergio Pedri f38c3d1086 Extended [ReadOnly]Span2D<T>(void*) support
Now available on .NET Standard <= 2.0 too, like Span<T>
2020-10-08 23:00:31 +02:00
Sergio Pedri d9285bb46c Added missing nullability annotation 2020-10-08 23:00:31 +02:00
Sergio Pedri 19731a9f30 Fixed build errors in the unit tests (refactoring) 2020-10-08 23:00:31 +02:00
Sergio Pedri 6c0e44775f Minor code refactoring 2020-10-08 23:00:31 +02:00
Sergio Pedri 478d961417 Fixed two typos 2020-10-08 23:00:31 +02:00
Sergio Pedri 9202c5575a Improved handling of Memory<char>(string) inputs for Memory2D<T> 2020-10-08 23:00:31 +02:00
Sergio Pedri a7bc848f99 Ported speed improvements to ReadOnlySpan2D<T> 2020-10-08 23:00:31 +02:00
Sergio Pedri 71d158c20d Speed improvements to Span2D<T> CopyTo/Fill/Clear methods
Speedups related to runtimes without Span<T> support (eg. UWP)
2020-10-08 23:00:31 +02:00
Sergio Pedri c34f9ab6b7 Improved codegen in [ReadOnly]Span2D<T> types 2020-10-08 23:00:31 +02:00
Sergio Pedri 3030a7e7d9 Improved codegen in new ParallelHelper APIs 2020-10-08 23:00:31 +02:00
Sergio Pedri a822e88908 Improved codegen in refactored array extensions 2020-10-08 23:00:31 +02:00
Sergio Pedri 2ac9fa928a Improved codegen in enumerables 2020-10-08 23:00:30 +02:00
Sergio Pedri ad29254194 Fixed initial offset with array segment from memory 2020-10-08 23:00:02 +02:00
Sergio Pedri 1a7f24f0b7 Added support for string in Memory2D<T> 2020-10-08 23:00:02 +02:00
Sergio Pedri 0cda66958a Removed and fixed Memory<T> support in 2D memory 2020-10-08 23:00:02 +02:00
Sergio Pedri 207a894a25 Added string constructors in ReadOnlyMemory2D<T> 2020-10-08 23:00:02 +02:00
Sergio Pedri 93cffda507 Improved Memory<T> support in ReadOnlyMemory2D<T> 2020-10-08 23:00:02 +02:00
Sergio Pedri 97f96db7e4 Minor optimization when wrapping [ReadOnly]Memory<T> 2020-10-08 23:00:02 +02:00
Sergio Pedri 4951716883 Readonly all the things! 2020-10-08 23:00:02 +02:00
Sergio Pedri 62b08b3f5e Fixed two typos 2020-10-08 23:00:02 +02:00
Sergio Pedri 6a8a90417e Added XML note for [ReadOnly]RefEnumerable<T>.step 2020-10-08 23:00:02 +02:00
Sergio Pedri 4f228e98a0 Added more comments for IsCovariant<T>() extension 2020-10-08 23:00:02 +02:00
Sergio Pedri 0d1dfb23d6 Removed aaaaaaaaaaaa-s 2020-10-08 23:00:02 +02:00
Sergio Pedri 3e9ea37670 Improved codegen when throwing exceptions 2020-10-08 23:00:02 +02:00
Sergio Pedri ab100261fb Added new 3D array tests, minor refactoring 2020-10-08 23:00:01 +02:00
Sergio Pedri b8a4f37c74 Added T[,,].GetRow/GetColumn APIs 2020-10-08 22:58:25 +02:00
Sergio Pedri 7fee827fcc Minor code tweaks 2020-10-08 22:58:25 +02:00
Sergio Pedri 04a725db7b Bug fixes in the ReadOnlyRefEnumerable<T>, more tests 2020-10-08 22:58:24 +02:00
Sergio Pedri 84ebd76a96 Bug fixes in the GetRow/GetColumn enumerators 2020-10-08 22:58:24 +02:00
Sergio Pedri 8475709b79 Renamed variables in unit tests 2020-10-08 22:58:10 +02:00
Sergio Pedri 3c790bf605 Tweaked [ReadOnly]Memory2D<T>.GetHashCode() 2020-10-08 22:58:10 +02:00
Sergio Pedri bc98e049ee Fixed a typo 2020-10-08 22:58:10 +02:00
Sergio Pedri 5c6e5df68a Removed more unnecessary debug proxy types 2020-10-08 22:58:10 +02:00
Sergio Pedri 1e7feee275 Simplified debug type proxies for memory types 2020-10-08 22:58:10 +02:00
Sergio Pedri e5b2335a9e Added debug views for 2D memory types 2020-10-08 22:58:10 +02:00
Sergio Pedri f7462db3a4 Added ParallelHelper.ForEach2D ref tests 2020-10-08 22:58:09 +02:00
Sergio Pedri a9e5f398ae Added ParallelHelper.ForEach2D readonly tests 2020-10-08 22:58:09 +02:00
Sergio Pedri 0f3210b770 Fixed a bug in T[,] array memory/span constructors 2020-10-08 22:58:09 +02:00
Sergio Pedri e8394a9537 Added ParallelHelper APIs for new 2D types 2020-10-08 22:58:09 +02:00
Sergio Pedri dc961414cf Added [ReadOnly]Span2D<T>.DangerousGetReferenceAt 2020-10-08 22:58:09 +02:00
Sergio Pedri 274f9fbdc8 Removed unnecessary attributes 2020-10-08 22:58:09 +02:00