你的位置:首页 > 软件开发 > Java > 按位或运算的一种应用方式

按位或运算的一种应用方式

发布时间:2016-11-05 11:00:28
java.nio.Buffer.java源码中有如下代码:static void checkBounds(int off, int len, int size) { if ((off | len | (off + len) | (size - (off + len))) &lt ...

 java.nio.Buffer.java源码中有如下代码:

static void checkBounds(int off, int len, int size) {  if ((off | len | (off + len) | (size - (off + len))) < 0)    throw new IndexOutOfBoundsException();}

原标题:按位或运算的一种应用方式

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录