本文整理了Java中org.apache.mina.common.ByteBuffer.getShort()
方法的一些代码示例,展示了ByteBuffer.getShort()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ByteBuffer.getShort()
方法的具体详情如下:
包路径:org.apache.mina.common.ByteBuffer
类名称:ByteBuffer
方法名:getShort
暂无
代码示例来源:origin: org.apache.directory.mina/mina-core
/**
* Reads two bytes unsigned integer.
*/
public int getUnsignedShort()
{
return getShort() & 0xffff;
}
代码示例来源:origin: org.apache.directory.mina/mina-core
/**
* Reads two bytes unsigned integer.
*/
public int getUnsignedShort( int index )
{
return getShort( index ) & 0xffff;
}
代码示例来源:origin: org.apache.directory.mina/mina-core
public short getShort()
{
return buf.getShort();
}
代码示例来源:origin: org.apache.directory.mina/mina-core
public short getShort( int index )
{
return buf.getShort( index );
}
代码示例来源:origin: org.reddwarfserver.client/sgs-client
int msgLen = msgBuf.getShort() & 0xFFFF;
内容来源于网络,如有侵权,请联系作者删除!