本文整理了Java中org.littleshoot.mina.common.ByteBuffer.getUnsignedInt()
方法的一些代码示例,展示了ByteBuffer.getUnsignedInt()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ByteBuffer.getUnsignedInt()
方法的具体详情如下:
包路径:org.littleshoot.mina.common.ByteBuffer
类名称:ByteBuffer
方法名:getUnsignedInt
[英]Reads four bytes unsigned integer.
[中]读取四个字节的无符号整数。
代码示例来源:origin: org.littleshoot/mina-port
public long getUnsignedInt() {
return buf.getUnsignedInt();
}
代码示例来源:origin: org.littleshoot/mina-port
public long getUnsignedInt(int index) {
return buf.getUnsignedInt(index);
}
代码示例来源:origin: org.littleshoot/mina-util
public DecodingState decode(final ByteBuffer in,
final ProtocolDecoderOutput out) throws Exception
{
if (in.remaining() > 3)
{
final long decoded = in.getUnsignedInt();
return finishDecode(decoded, out);
}
else
{
return this;
}
}
代码示例来源:origin: org.littleshoot/stun-stack
final long secondFourBytes = in.getUnsignedInt(pos + 4);
代码示例来源:origin: org.littleshoot/stun-stack
final long secondFourBytes = in.getUnsignedInt(pos + 4);
代码示例来源:origin: org.littleshoot/stun-stack
final long statusInt = body.getUnsignedInt();
final ConnectionStatus status =
ConnectionStatus.valueOf(statusInt);
final long priority = body.getUnsignedInt();
return new IcePriorityAttribute(priority);
内容来源于网络,如有侵权,请联系作者删除!