byte-set-rs icon indicating copy to clipboard operation
byte-set-rs copied to clipboard

Stable internal memory representation

Open nvzqz opened this issue 5 years ago • 0 comments

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.

nvzqz avatar Jun 12 '20 04:06 nvzqz