Skip to content

Add std::bitset support with packed binary and string encodings - #761

Open
Altren wants to merge 4 commits into
munich-data-engineering:mainfrom
Altren:packed-bitset
Open

Altren wants to merge 4 commits into
munich-data-engineering:mainfrom
Altren:packed-bitset

Conversation

@Altren

@Altren Altren commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Add std::bitset<N> support across all serializers. Cereal, YAS, CBOR, and Boost.Serialization use their native adapters; the remaining binary backends share a packed-byte representation, and other formats use fixed-length to_string() strings. A 256-bit descriptor uses a 32-byte packed payload, excluding format framing; native Boost retains its string encoding.

The shared parsers validate lengths, characters, and padding. Tests cover zero-length and non-byte-aligned bitsets, sizes through 256, nested placement, malformed input, and native interoperability. CSV preserves leading zeroes, and Avro handles empty byte strings.

This branch has not been deployed

No deployments
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