styx2000.lowlevel.endianness

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

Members

Aliases

fromLEBytes
alias fromLEBytes = EndianSequence!(BYTE_ORDER.LITTLE_ENDIAN).unpack

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

fromLEBytes
alias fromLEBytes = EndianSequence!(BYTE_ORDER.LITTLE_ENDIAN).unpack

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

toBEBytes
alias toBEBytes = EndianSequence!(BYTE_ORDER.BIG_ENDIAN).pack

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

toLEBytes
alias toLEBytes = EndianSequence!(BYTE_ORDER.LITTLE_ENDIAN).pack

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

Classes

EndianSequence
class EndianSequence(BYTE_ORDER byteOrder)

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)

Meta

Authors

Oleg Bakharev, Ilya Pertsev