Skip to content

Improved support for borsh serialization#259

Merged
bluss merged 2 commits into
bluss:masterfrom
honzasp:borsh
Mar 7, 2024
Merged

Improved support for borsh serialization#259
bluss merged 2 commits into
bluss:masterfrom
honzasp:borsh

Conversation

@honzasp

@honzasp honzasp commented Jan 18, 2024

Copy link
Copy Markdown
Contributor

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

bluss commented Mar 7, 2024

Copy link
Copy Markdown
Owner

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

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

bluss commented Mar 7, 2024

Copy link
Copy Markdown
Owner

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