tinyendian

A minimal library providing functionality for changing the endianness of data.

Types 2

enumUTFEncoding : ubyte

Unicode UTF encodings.

UTF_8
UTF_16
UTF_32

See fixUTFByteOrder.

Fields
ubyte[] array
UTFEncoding encoding
Endian endian
uint bytesStripped

Functions 2

fnvoid swapByteOrder(T)(T[] array) if (T.sizeof == 2 || T.sizeof == 4) @trusted @nogc pure nothrowSwap byte order of items in an array in place.
fnauto fixUTFByteOrder(ubyte[] array) @safe @nogc pure nothrowConvert byte order of an array encoded in UTF(8/16/32) to system endianness in place.