fromLEBytes

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

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

Return Value

The value retrieved from the array

Typical usage:

// value is 0x00efcdab in hex or 15715755 in dec  
uint tmp = fromLEBytes!uint([0xab, 0xcd, 0xef, 0x00]);

Meta