niknaks.bits

Binary tooling

Members

Enums

Order
enum Order

Ordering

Functions

bytesToIntegral
T bytesToIntegral(ubyte[] bytes)

Takes an array of bytes and dereferences then to an integral of your choosing

flip
T flip(T bytesIn)

Flips the given integral value

order
T order(T bytesIn, Order order)

Swaps the bytes to the given ordering but does a no-op if the ordering requested is the same as that of the system's

toBytes
ubyte[] toBytes(T integral)

Converts the given integral value to its byte encoding

Meta

Authors

Tristan Brice Velloza Kildaire (deavmi)