H
Hank
Unregistered / Unconfirmed
GUEST, unregistred user!
下面这段程序错在那里?
先谢谢了!
代码:
public byte[] floatToBytes(float f)
{
try
{
byte abyte0[] = new byte[4];
abyte0[0] = (byte)(int)f;
abyte0[1] = (byte)(int)((long)f >> 8 &
-1L);
abyte0[2] = (byte)(int)((long)f >> 16 &
-1L);
abyte0[3] = (byte)(int)((long)f >> 24 &
-1L);
return abyte0;
}
catch (NullPointerException _ex2)
{
return null;
}
}