Core primitives for encoding/decoding operations, serving as the foundation to other higher level implementations.