org.littleshoot.mina.common.ByteBuffer.getUnsignedInt()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(103)

本文整理了Java中org.littleshoot.mina.common.ByteBuffer.getUnsignedInt()方法的一些代码示例,展示了ByteBuffer.getUnsignedInt()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ByteBuffer.getUnsignedInt()方法的具体详情如下:
包路径:org.littleshoot.mina.common.ByteBuffer
类名称:ByteBuffer
方法名:getUnsignedInt

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);

相关文章