如何将int数组转换为bin int?

我得到的数组填充了零和一,如何将其转换为int;

From: {0,0,0,0,0,0,0,1}
To this 0b00000001