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

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

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

ByteBuf.getMedium介绍

[英]Gets a 24-bit medium integer at the specified absolute index in this buffer. This method does not modify readerIndex or writerIndex of this buffer.
[中]获取此缓冲区中指定绝对索引处的24位中整数。此方法不修改此缓冲区的readerIndex或writerIndex。

代码示例

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

  1. @Override
  2. public int getMedium(int index) {
  3. return buf.getMedium(index);
  4. }

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

  1. @Override
  2. public int getMediumLE(int index) {
  3. return buf.getMedium(index);
  4. }

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

  1. @Override
  2. public int getMediumLE(int index) {
  3. return buf.getMedium(index);
  4. }

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

  1. @Override
  2. public int getMedium(int index) {
  3. return buf.getMedium(index);
  4. }

代码示例来源:origin: eclipse-vertx/vert.x

  1. public int getMedium(int pos) {
  2. return buffer.getMedium(pos);
  3. }

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

  1. @Override
  2. public int getMediumLE(int index) {
  3. return buf.getMedium(index);
  4. }

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

  1. @Override
  2. public int getMedium(int index) {
  3. return buf.getMedium(index);
  4. }

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

  1. @Override
  2. public int getMedium(int index) {
  3. return byteBuf.getMedium(index);
  4. }

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

  1. @Override
  2. public int getMedium(int index) {
  3. checkIndex(index, 3);
  4. return buffer.getMedium(index);
  5. }

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

  1. @Override
  2. public int getMedium(int index) {
  3. return ByteBufUtil.swapMedium(buf.getMedium(index));
  4. }

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

  1. @Override
  2. public int getMedium(int index) {
  3. checkIndex(index, 3);
  4. return buffer.getMedium(index);
  5. }

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

  1. @Override
  2. public int getMedium(int index) {
  3. return ByteBufUtil.swapMedium(buf.getMedium(index));
  4. }

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

  1. @Override
  2. public int getMedium(int index) {
  3. checkIndex(index, 3);
  4. return buffer.getMedium(index);
  5. }

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

  1. @Override
  2. public int getMedium(int index) {
  3. return ByteBufUtil.swapMedium(buf.getMedium(index));
  4. }

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

  1. break;
  2. default:
  3. inBuff = numSigBytes <= 0 ? 0 : toIntBE(src.getMedium(srcOffset));
  4. break;
  5. break;
  6. default:
  7. inBuff = numSigBytes <= 0 ? 0 : toIntLE(src.getMedium(srcOffset));
  8. break;

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

  1. break;
  2. default:
  3. inBuff = numSigBytes <= 0 ? 0 : toIntBE(src.getMedium(srcOffset));
  4. break;
  5. break;
  6. default:
  7. inBuff = numSigBytes <= 0 ? 0 : toIntLE(src.getMedium(srcOffset));
  8. break;

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

  1. @Override
  2. public int getMedium(int index) {
  3. return buf.getMedium(index);
  4. }

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

  1. @Override
  2. public int getMediumLE(int index) {
  3. return buf.getMedium(index);
  4. }

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

  1. break;
  2. default:
  3. inBuff = numSigBytes <= 0 ? 0 : toIntBE(src.getMedium(srcOffset));
  4. break;
  5. break;
  6. default:
  7. inBuff = numSigBytes <= 0 ? 0 : toIntLE(src.getMedium(srcOffset));
  8. break;

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

  1. @Override
  2. public int getMedium(int index) {
  3. return ByteBufUtil.swapMedium(buf.getMedium(index));
  4. }

相关文章

ByteBuf类方法