/bight

Byte ordering without fiasco

Primary LanguageNimMIT LicenseMIT

Bight

Bight (noun): A U-shaped part in the middle of a length of rope.

So, the opposite of an end, in a way.

Bight is a Nim library to handle byte ordering, an alternative to std/endians and stew/endians2, based on the C implementation proposed in justine.lol/endian.html.

Simple read/write API with both value and pointer overloads. No swapping, just say which order and size you want.

Generated API docs