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

Remove NewBytes and fallback to NewCopyBytes behaviour #14

Merged
merged 1 commit into from
May 4, 2023

Conversation

ferranbt
Copy link
Contributor

@ferranbt ferranbt commented May 3, 2023

This PR fallback NewBytes to NewCopyBytes. I keep both functions in order not to break API compatibility. It is not possible to use NewBytes without copying the input because of how the values get reused between different Arena allocations.

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