Skip to content

Allow for general byte slice serialization#31

Merged
frankmcsherry merged 2 commits intomasterfrom
generalize_serialization
Feb 9, 2025
Merged

Allow for general byte slice serialization#31
frankmcsherry merged 2 commits intomasterfrom
generalize_serialization

Conversation

@frankmcsherry
Copy link
Copy Markdown
Owner

This PR refactors how we present the encoding and decoding of byte sequences, consolidating the logic behind an EncodeDecode trait. This is breaking, in that it removes AsBytes::length_in_words, but this method was inappropriately opinionated about how the type should be serialized. Uses should be replaced with EncodeDecode::length instead.

Porting over timely's examples/columnar to work with the new encoding was short and actually reduced some code.

@frankmcsherry frankmcsherry merged commit 5471b54 into master Feb 9, 2025
6 checks passed
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.

1 participant