Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnsafeArray Tests #39

Merged
merged 2 commits into from
Oct 27, 2023
Merged

UnsafeArray Tests #39

merged 2 commits into from
Oct 27, 2023

Conversation

martindevans
Copy link
Contributor

Improved Test coverage for UnsafeArray and fixed some issues:

  • Removed some [Pure] attributes (meaningless on void method)
  • Removed some readonly modifiers on methods (meaningless on methods inside a readonly struct)
  • Replaced Fill implementation with Span.Fill (which is simpler and should be faster)
  • Fixed resize (previously it could only ever grow, never shrink)

 - Removed some `[Pure]` attributes (meaningless on `void` method)
 - Removed some `readonly` modifiers on methods (meaningless on methods inside a `readonly` struct)
 - Replaced `Fill` implementation with `Span.Fill` which should be faster
 - Fixed resize (previously it could only ever grow, never shrink)
Copy link
Owner

@genaray genaray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, great job! :)

@genaray genaray merged commit bd50e06 into genaray:master Oct 27, 2023
2 checks passed
@martindevans martindevans deleted the UnsafeArray_Tests branch October 27, 2023 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants