Overview

BitsFields.jl

Overview

This package facilitates the use of bit fields. It is written entirely in Julia and released under the MIT License.

Terminology

A bit field is a contiguous sequence of one or more bits within a carrier type (the substrate).

A bit multifield is a collection of one or more bit fields within a shared carrier type (the substrate).

The bit fields that compose a bit multifield may or may not be mutually contiguous (there is no requirement that the substrate is completely allocated to the constituent bit fields, nor that any specific bit be allocated).

The BitField

The BitMultiField

IEEE Standard Floating Point fields

Worked Example: Float32 bitfields

References