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

Spanify various things and use UTF-8 literals #361

Merged
merged 2 commits into from
Jan 19, 2024

Conversation

iamcarbon
Copy link
Collaborator

@iamcarbon iamcarbon commented Jan 18, 2024

Posting for early feedback.

There is one public API change, which I'm happy to revert if we have a no-breaking changes policy.

protected byte[] PreambleBytes was changed to protected ReadOnlySpan<byte> PreambleBytes

This also prevents the mutation of the underlying data.

@iamcarbon
Copy link
Collaborator Author

@drewnoakes Ready for review.

@drewnoakes
Copy link
Owner

Thanks @iamcarbon this is great. I've started spanifying a few things locally too, though we don't have much overlap which is great. I'm looking mostly at the deserialization stuff, using BinaryPrimitives rather than hand-rolled functions. The built-in ones will be faster.

There is one public API change

I think that's fine, as it's not an API I'd expect many to use directly (if any), though I'm surprised it didn't require a change to the API files.

@drewnoakes drewnoakes merged commit 59f9b3e into drewnoakes:master Jan 19, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants