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

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

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

ByteBuffer.putLong介绍

暂无

代码示例

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

public ByteBuffer putLong( long value )
{
  buf.putLong( value );
  return this;
}

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

public ByteBuffer putLong( int index, long value )
{
  buf.putLong( index, value );
  return this;
}

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

private void writeCSNVector( ByteBuffer out, CSNVector csns )
{
  Set<String> replicaIds = csns.getReplicaIds();
  int nReplicas = replicaIds.size();
  out.putInt( nReplicas );
  for ( String replicaId:replicaIds )
  {
    CSN csn = csns.getCSN( replicaId );
    
    try
    {
      out.putString( replicaId, utf8encoder );
      out.put( ( byte ) 0x00 );
      out.putLong( csn.getTimestamp() );
      out.putInt( csn.getOperationSequence() );
    }
    catch ( CharacterCodingException e )
    {
      throw new RuntimeException( e );
    }
  }
}

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

putLong( 0L );

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

putLong( longValue );

相关文章