本文整理了Java中io.airlift.slice.Slice.getUnsignedInt()
方法的一些代码示例,展示了Slice.getUnsignedInt()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Slice.getUnsignedInt()
方法的具体详情如下:
包路径:io.airlift.slice.Slice
类名称:Slice
方法名:getUnsignedInt
[英]Gets an unsigned 32-bit integer at the specified absolute index in this buffer.
[中]获取此缓冲区中指定绝对索引处的无符号32位整数。
代码示例来源:origin: airlift/slice
@Test
public void testUnsignedInt()
{
long expected = 0xA5A5A5A5L;
assertTrue(expected > 0); // make sure we didn't forget the L in the constant above
assertEquals(slice.getUnsignedInt(0), expected);
}
代码示例来源:origin: io.airlift/slice
@Test
public void testUnsignedInt()
{
long expected = 0xA5A5A5A5L;
assertTrue(expected > 0); // make sure we didn't forget the L in the constant above
assertEquals(slice.getUnsignedInt(0), expected);
}
代码示例来源:origin: io.airlift/slice
h3 += (data.getByte(current + 12) & 0xFFL) << 32;
case 12:
h3 += data.getUnsignedInt(current + 8);
h2 += data.getLong(current);
break;
h2 += (data.getByte(current + 4) & 0xFFL) << 32;
case 4:
h2 += data.getUnsignedInt(current);
break;
case 3:
代码示例来源:origin: airlift/slice
h3 += (data.getByte(current + 12) & 0xFFL) << 32;
case 12:
h3 += data.getUnsignedInt(current + 8);
h2 += data.getLong(current);
break;
h2 += (data.getByte(current + 4) & 0xFFL) << 32;
case 4:
h2 += data.getUnsignedInt(current);
break;
case 3:
内容来源于网络,如有侵权,请联系作者删除!