static public unsafe uint UInt32FromLE (byte [] data, int index)
{
if (data == null)
throw new ArgumentNullException ("data");
if (data.Length - index < 4)
throw new ArgumentException ("index");
if (index < 0)
throw new ArgumentException ("index");
uint ret;
fixed (byte *src = &data[index]){
PutBytesLE ((byte *) &ret, src, 4);
}
return ret;
}