public int ByteArray.ToInt(bool littleendian, range=null)Convert the bytes at an offset to an integer