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

Improved support for borsh serialization #259

Merged
merged 2 commits into from
Mar 7, 2024
Merged

Conversation

honzasp
Copy link
Contributor

@honzasp honzasp commented Jan 18, 2024

Builds on #253 with the following improvements:

  • Do not allocate when deserializing ArrayString
  • Serialize length as u32, not as u64, to be consistent with serialization of [T] and str
  • Add tests

Closes #253

Fuuzetsu and others added 2 commits December 7, 2023 13:14
- Do not allocate when deserializing ArrayString
- Serialize length as u32, not as u64, to be consistent with
  serialization of [T] and str
- Add tests
@bluss
Copy link
Owner

bluss commented Mar 7, 2024

borsh docs say lengths are u32, then so it is.

@bluss bluss merged commit ae6cfd3 into bluss:master Mar 7, 2024
@bluss
Copy link
Owner

bluss commented Mar 7, 2024

Thanks both of you

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.

3 participants