dolina.util

Utility functions to convert DM

Members

Functions

getFromDM
T getFromDM(ushort[] words)

Takes an array of DM (ushort) and converts the first T.sizeof / 2 DM to T.

peekDM
T peekDM(ushort[] words, size_t index)

Takes an array of DM (ushort) and converts the first T.sizeof / 2 DM to T starting from index index.

peekDM
T peekDM(ushort[] words)

Takes an array of DM (words ushort)) and converts the first T.sizeof / 2 DM to T. The array is not consumed.

toBytes
ubyte[] toBytes(T[] words)

Converts an array of type T into ubyte array.

toDM
ushort[] toDM(ubyte[] bytes)

Converts an array of bytes into DM array.

Manifest constants

BYTES_PER_DM
enum BYTES_PER_DM;

Bytes per each DM.

Structs

DMAppender
struct DMAppender
Undocumented in source.

Meta