Commit Graph
926 Commits
Author SHA1 Message Date
Sergio Pedri 166a23cc9e Minor code tweaks for clarity 2020-11-01 16:39:46 +01:00
Sergio Pedri f870cbf8a8 Minor code refactoring 2020-11-01 01:13:10 +01:00
Sergio Pedri 131509b805 Fixed bug in ReadOnlyRefEnumerable<T> implicit cast 2020-10-31 20:04:44 +01:00
Sergio Pedri 2eca42f6db Fixed bugs in unit tests 2020-10-31 19:10:44 +01:00
Sergio Pedri 55a8be0e20 Added comments to unit tests 2020-10-31 18:24:30 +01:00
Sergio Pedri 9d841afb80 Removed unnecessary covariance array checks 2020-10-31 17:13:30 +01:00
Sergio Pedri 470306e89b Improved unit test coverage for RefEnumerable<T> 2020-10-31 13:53:10 +01:00
Sergio Pedri bf7e7943f8 Tweaked some using directives 2020-10-31 13:17:45 +01:00
Sergio Pedri 1a9e532b93 Fixed a build error in the unit tests 2020-10-31 11:46:01 +01:00
Sergio Pedri 67cc61b643 Added RefEnumerable<T>.CopyTo(RefEnumerable) APIs 2020-10-30 23:53:13 +01:00
Sergio Pedri a8d55db95e Removed unnecessary EditorBrowsable attributes 2020-10-30 23:17:18 +01:00
Sergio Pedri d7c2f0e2d1 Added implicit ReadOnlyRefEnumerable operator 2020-10-30 23:15:18 +01:00
Sergio Pedri 9bb521dc05 Minor code tweaks 2020-10-30 23:08:27 +01:00
Sergio Pedri 3c91227b9d Added RefEnumerableHelper.CopyTo 2-step overload 2020-10-30 22:45:15 +01:00
Sergio Pedri f783fdc530 Code refactoring using the new helper 2020-10-30 20:23:02 +01:00
Sergio Pedri 7fca4d998d Added internal RefEnumerableHelper type 2020-10-30 20:18:08 +01:00
Sergio Pedri efdd7d8d66 Added [ReadOnly]Span.[Try]CopyTo RefEnumerable APIs 2020-10-30 18:24:01 +01:00
Sergio Pedri 426af3f579 Bug fixes, added RefEnumerable<T>.[Try]CopyFrom 2020-10-30 18:16:46 +01:00
Sergio Pedri 8c34ddc37c Added comments to DangerousGetReference tests 2020-10-29 22:22:07 +01:00
Sergio Pedri 9e1f4ebe5f Added more comments, minor code refactoring 2020-10-28 14:52:03 +01:00
Sergio Pedri 174ccbe0d7 15% speedup in Span2D<T>.DangerousGetReferenceAt 2020-10-26 16:20:07 +01:00
Sergio Pedri 02bd8e4f6b Added missing overflow check, improved docs 2020-10-26 13:52:30 +01:00
Sergio Pedri 85b3f9c5c8 Updated unit tests 2020-10-25 16:42:26 +01:00
Sergio Pedri 12e592848f Minor code tweaks 2020-10-25 15:40:04 +01:00
Sergio Pedri e166c6694e Minor codegen improvement 2020-10-25 01:25:28 +02:00
Sergio Pedri aa5f5f8b22 Updated C# version in .csproj 2020-10-23 18:09:47 +02:00
Sergio Pedri 0b6628a884 Increased count batch size on x64 for long/ulong values 2020-10-23 17:50:06 +02:00
Sergio Pedri 243c3f35af More codegen improvements 2020-10-23 16:33:28 +02:00
Sergio Pedri 3c556b0846 Minor codegen improvements 2020-10-23 16:23:54 +02:00
Sergio Pedri 1c103c5fd1 Code refactoring with IntPtr to nint 2020-10-23 04:00:05 +02:00
Sergio Pedri 7f2e4ce2c1 Switched Count<T> implementation to nint 2020-10-23 03:55:14 +02:00
Sergio Pedri d14db95fa3 Fixed a bug in some RefEnumerable<T> methods 2020-10-22 22:34:49 +02:00
Sergio Pedri e2dec777e3 Added missing header 2020-10-22 21:27:15 +02:00
Sergio Pedri f0a95b11e9 Merge pull request #29 from Sergio0694/feature/nint-offsetting
Feature/nint offsetting
2020-10-22 17:22:43 +02:00
Sergio Pedri 0178b01b80 Improved support for large 2D/3D arrays 2020-10-22 17:19:24 +02:00
Sergio Pedri ab5a777066 Switched [Memory|Span]2D<T>.Length property to nint 2020-10-22 16:33:21 +02:00
Sergio Pedri 535686c0d2 Renamed Size property to Length 2020-10-22 15:46:39 +02:00
Sergio Pedri 1e33558f1c Fixed overflows in [ReadOnly]RefEnumerable<T> 2020-10-22 15:11:05 +02:00
Sergio Pedri f998a2e1da Fixed missing overflow check in constructor 2020-10-22 13:13:40 +02:00
Sergio Pedri 38d76f67b2 Fixed indexing computation in Span2D<T> types 2020-10-22 01:53:50 +02:00
Sergio Pedri d2e848a5a2 Added Span<T>.DangerousGetReferenceAt nint overload 2020-10-22 01:25:30 +02:00
Sergio Pedri b194c013e4 Switched (IntPtr)(void*) casts with (nint) 2020-10-22 01:19:30 +02:00
Sergio Pedri 5994d81a2e Added 32 bit overflow checks in constructors 2020-10-21 23:49:18 +02:00
Sergio Pedri b3496348e8 Added OverflowHelper, enabled C# 9 2020-10-21 22:05:54 +02:00
Sergio Pedri 56e00906ad Fixed [Memory|Span]2D<T>.IsEmpty property 2020-10-21 14:11:00 +02:00
Sergio Pedri 6873fcd0ef Fixed incorrect file name 2020-10-19 16:59:54 +02:00
Sergio Pedri e30a392655 Added comment for GCHandle.Alloc exception 2020-10-19 15:54:35 +02:00
Sergio Pedri 559d44c82e Added [ReadOnly]Span<T>.AsSpan2D extensions 2020-10-17 17:55:54 +02:00
Sergio Pedri 6adbcb1b17 Added missing internal constructors 2020-10-17 17:53:00 +02:00
Sergio Pedri 55cd7df117 Minor code tweaks 2020-10-17 12:43:27 +02:00