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