com.couchbase.client.deps.io.netty.buffer.ByteBuf.readBoolean()方法的使用及代码示例

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

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

ByteBuf.readBoolean介绍

[英]Gets a boolean at the current readerIndex and increases the readerIndex by 1 in this buffer.
[中]获取当前readerIndex处的布尔值,并在此缓冲区中将readerIndex增加1。

代码示例

代码示例来源:origin: couchbase/couchbase-jvm-core

@Override
public boolean readBoolean() {
  return buf.readBoolean();
}

代码示例来源:origin: com.couchbase.client/core-io

@Override
public boolean readBoolean() {
  return buf.readBoolean();
}

代码示例来源:origin: com.couchbase.client/core-io

@Override
public boolean readBoolean() {
  return buf.readBoolean();
}

代码示例来源:origin: couchbase/couchbase-jvm-core

@Override
public boolean readBoolean() {
  return buf.readBoolean();
}

代码示例来源:origin: com.couchbase.client/core-io

@Override
public boolean readBoolean() {
  checkReadableBytes(1);
  return buffer.readBoolean();
}

代码示例来源:origin: couchbase/couchbase-jvm-core

@Override
public boolean readBoolean() {
  checkReadableBytes(1);
  return buffer.readBoolean();
}

代码示例来源:origin: couchbase/java-dcp-client

ObserveSeqnoResponse(final ByteBuf response) {
  ByteBuf content = MessageUtil.getContent(response);
  this.didFailover = content.readBoolean();
  this.vbid = content.readShort();
  this.vbuuid = content.readLong();
  this.persistSeqno = content.readLong();
  this.currentSeqno = content.readLong();
  this.oldVbuuid = this.didFailover ? content.readLong() : 0;
  this.lastSeqno = this.didFailover ? content.readLong() : 0;
}

相关文章