styx2000.lowlevel.endianness

Module for manipulating bytes in constructing and deconstructing various byte orders.

Members

Classes

EndianSequence
class EndianSequence

A class that provides functionality for construct and deconstruct values. All methods is static.

Enums

BYTE_ORDER
enum BYTE_ORDER

Endianess (i.e byte-order)

Functions

fromBEBytes
auto fromBEBytes(ubyte[] bytes)

Construct a value from bytes fed in big-endian order. Helper for EndianSequence.unpack with preset Big Endian byte order (BE).

fromLEBytes
auto fromLEBytes(ubyte[] bytes)

Construct a value from bytes fed in little-endian order. Helper for EndianSequence.unpack with preset Little Endian byte order (LE).

toBEBytes
auto toBEBytes(T value)

Parse a value into bytes in big-endian order. Helper for EndianSequence.pack with preset Big Endian byte order (BE).

toLEBytes
auto toLEBytes(T value)

Parse a value into bytes in little-endian order. Helper for EndianSequence.pack with preset Little Endian byte order (LE).

Meta

Authors

Oleg Bakharev, Ilya Pertsev