io.netty.buffer.ByteBuf.readMedium()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(416)

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

ByteBuf.readMedium介绍

[英]Gets a 24-bit medium integer at the current readerIndexand increases the readerIndex by 3 in this buffer.
[中]获取当前readerIndex处的24位中整数,并在此缓冲区中将readerIndex增加3。

代码示例

代码示例来源:origin: netty/netty

@Override
public int readMedium() {
  return buf.readMedium();
}

代码示例来源:origin: netty/netty

@Override
public int readMediumLE() {
  return buf.readMedium();
}

代码示例来源:origin: redisson/redisson

@Override
public int readMediumLE() {
  return buf.readMedium();
}

代码示例来源:origin: apache/incubator-shardingsphere

/**
 * Read 3 byte fixed length integer from byte buffers.
 *
 * @return 3 byte fixed length integer
 */
public int readInt3() {
  return byteBuf.readMedium() & 0xffffff;
}

代码示例来源:origin: redisson/redisson

@Override
public int readMedium() {
  return buf.readMedium();
}

代码示例来源:origin: wildfly/wildfly

@Override
public int readMediumLE() {
  return buf.readMedium();
}

代码示例来源:origin: wildfly/wildfly

@Override
public int readMedium() {
  return buf.readMedium();
}

代码示例来源:origin: micronaut-projects/micronaut-core

@Override
public int readMedium() {
  return byteBuf.readMedium();
}

代码示例来源:origin: netty/netty

@Override
public int readMedium() {
  checkReadableBytes(3);
  return buffer.readMedium();
}

代码示例来源:origin: netty/netty

@Override
public int readMedium() {
  return ByteBufUtil.swapMedium(buf.readMedium());
}

代码示例来源:origin: redisson/redisson

@Override
public int readMedium() {
  return ByteBufUtil.swapMedium(buf.readMedium());
}

代码示例来源:origin: redisson/redisson

@Override
public int readMedium() {
  checkReadableBytes(3);
  return buffer.readMedium();
}

代码示例来源:origin: wildfly/wildfly

@Override
public int readMedium() {
  checkReadableBytes(3);
  return buffer.readMedium();
}

代码示例来源:origin: wildfly/wildfly

@Override
public int readMedium() {
  return ByteBufUtil.swapMedium(buf.readMedium());
}

代码示例来源:origin: Graylog2/graylog2-server

return Optional.of(bb.readShort());
case INT24:
  return Optional.of(bb.readMedium());
case INT32:
  return Optional.of(bb.readInt());

代码示例来源:origin: io.netty/netty-buffer

@Override
public int readMedium() {
  return buf.readMedium();
}

代码示例来源:origin: io.netty/netty-buffer

@Override
public int readMediumLE() {
  return buf.readMedium();
}

代码示例来源:origin: io.netty/netty-buffer

@Override
public int readMedium() {
  return ByteBufUtil.swapMedium(buf.readMedium());
}

代码示例来源:origin: traccar/traccar

position.setAltitude(buf.readMedium());

代码示例来源:origin: org.apache.activemq/artemis-jms-client-all

@Override
public int readMedium() {
  checkReadableBytes(3);
  return buffer.readMedium();
}

相关文章

ByteBuf类方法