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

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

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

ByteBuffer.getInt介绍

暂无

代码示例

代码示例来源:origin: org.apache.directory.mina/mina-core

/**
 * Reads four bytes unsigned integer.
 */
public long getUnsignedInt( int index )
{
  return getInt( index ) & 0xffffffffL;
}

代码示例来源:origin: org.apache.directory.mina/mina-core

/**
 * Reads four bytes unsigned integer.
 */
public long getUnsignedInt()
{
  return getInt() & 0xffffffffL;
}

代码示例来源:origin: org.apache.directory.mina/mina-core

public int getInt( int index )
{
  return buf.getInt( index );
}

代码示例来源:origin: org.apache.directory.mina/mina-core

public int getInt()
{
  return buf.getInt();
}

代码示例来源:origin: org.apache.directory.server/mitosis

protected abstract BaseMessage decodeBody( Registries registries, int sequence, int bodyLength, int responseCode, ByteBuffer in )
  throws Exception;

代码示例来源:origin: alibaba/tair-java-client

int flag  = in.getInt();
int chid  = in.getInt();
int pcode = in.getInt();
int len   = in.getInt();

代码示例来源:origin: org.apache.directory.server/mitosis

private void readCSNVector( ByteBuffer in, CSNVector updateVector ) throws Exception
{
  int nReplicas = in.getInt();
  
  if ( nReplicas < 0 )
  {
    throw new ProtocolDecoderException( "Wrong nReplicas: " + nReplicas );
  }
  for ( ; nReplicas > 0; nReplicas-- )
  {
    String replicaId;
    
    try
    {
      replicaId = in.getString( utf8decoder );
    }
    catch ( CharacterCodingException e )
    {
      throw new ProtocolDecoderException( "Invalid replicaId", e );
    }
    updateVector.setCSN( new DefaultCSN( in.getLong(), replicaId, in.getInt() ) );
  }
}

代码示例来源:origin: org.apache.directory.mina/mina-core

break;
case 4:
  fieldSize = getInt();
  break;

代码示例来源:origin: org.apache.directory.server/mitosis

sequence = in.getInt();
bodyLength = in.getInt();

代码示例来源:origin: org.apache.directory.mina/mina-core

break;
case 4:
  dataLength = getInt( position() );
  break;
default:

代码示例来源:origin: org.apache.directory.mina/mina-core

int length = getInt();
if( length <= 4 )

相关文章