Read Byte Array to Integer

Jeroen Bollen jbinero at gmail.com
Fri Nov 22 11:10:23 PST 2013


How do I read a byte array into an unsigned integer using little 
endian formatting? I know about the .read inside the std.bitmanip 
but I can't fingure out how to set it to little endian.

data.read!(uint, Endian.littleEndian)();

This gives me a huge compile message including the error at the 
top (without the candidates)

Error: template std.bitmanip.read does not match any function 
template declaration.


More information about the Digitalmars-d-learn mailing list