peekDM

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

  1. T peekDM(ushort[] words)
    T
    peekDM
    (
    T
    )
    (
    ushort[] words
    )
  2. T peekDM(ushort[] words, size_t index)

Parameters

T

The integral type to convert the first T.sizeof / 2 words to.

words
Type: ushort[]

The array of DM to convert

Examples

1 ushort[] words = [0x645A, 0x3ffb];
2 words.peekDM!float.shouldEqual(1.964F);
3 words.length.shouldEqual(2);
4 
5 ushort[] odd = [0x645A, 0x3ffb, 0xffaa];
6 odd.peekDM!float.shouldEqual(1.964F);
7 odd.length.shouldEqual(3);

Meta