byte-set-rs
byte-set-rs copied to clipboard
Stable internal memory representation
Motivation
There are currently no guarantees about ByteSet's internal memory representation. Each byte should always map to a specific bit across compatible versions when targeting the same architecture.
This would enable the library to be ported to other languages (e.g. C, C++, D, Swift) and have the same instance be sent directly across each language.
Target-specific behavior
Properties that are allowed to change the representation are:
- Endianness
- Pointer width
This allows for various optimizations while still being consistent.