Converts an array (either static or dynamic, but not associative) of ubyte to an integral number.
import std.system : Endian, endian; static if( endian == Endian.littleEndian ) auto bytes = [ 10, 0, 0, 0 ]; else auto bytes = [ 0, 0, 0, 10 ]; int num = bytes.to!int; // 10
See Implementation
Tony J. Hudgins
Copyright © 2019, Tony J. Hudgins
MIT
Converts an array (either static or dynamic, but not associative) of ubyte to an integral number.