【发布时间】:2010-08-09 01:58:29
【问题描述】:
Anyone know what follow code does?
问题是关于跟随运算符:& 和 |,and 0xfc
salt[0] = (byte)((salt[0] & 0xfc) | (saltLen & 0x03));
salt[1] = (byte)((salt[1] & 0xf3) | (saltLen & 0x0c));
salt[2] = (byte)((salt[2] & 0xcf) | (saltLen & 0x30));
salt[3] = (byte)((salt[3] & 0x3f) | (saltLen & 0xc0));
【问题讨论】:
-
您确实意识到在这些行的正上方有一条注释解释了它的作用?
-
您到底对什么感到困惑?如果您对代码或注释感到困惑,您能否详细说明是什么让您感到困惑?
-
问题是关于跟随运算符:&和|,and 0xfc
-
ozsenegal:您能否将其添加到您最初的问题中?也许删掉一些你也不需要问它的代码?现在,您的问题太模糊,无法回答。