本文整理了Java中io.netty.buffer.ByteBuf.getUnsignedMedium()
方法的一些代码示例,展示了ByteBuf.getUnsignedMedium()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ByteBuf.getUnsignedMedium()
方法的具体详情如下:
包路径:io.netty.buffer.ByteBuf
类名称:ByteBuf
方法名:getUnsignedMedium
[英]Gets an unsigned 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
@Override
public int getUnsignedMedium(int index) {
return buf.getUnsignedMedium(index);
}
代码示例来源:origin: redisson/redisson
@Override
public int getUnsignedMedium(int index) {
return buf.getUnsignedMedium(index);
}
代码示例来源:origin: eclipse-vertx/vert.x
public int getUnsignedMedium(int pos) {
return buffer.getUnsignedMedium(pos);
}
代码示例来源:origin: netty/netty
@Override
public int getUnsignedMedium(int index) {
checkIndex(index, 3);
return buffer.getUnsignedMedium(index);
}
代码示例来源:origin: netty/netty
@Override
public int getUnsignedMedium(int index) {
return unwrap().getUnsignedMedium(index);
}
代码示例来源:origin: netty/netty
@Override
public int getUnsignedMedium(int index) {
return unwrap().getUnsignedMedium(index);
}
代码示例来源:origin: netty/netty
@Override
protected int _getUnsignedMedium(int index) {
return unwrap().getUnsignedMedium(index);
}
代码示例来源:origin: netty/netty
@Override
protected int _getUnsignedMedium(int index) {
return unwrap().getUnsignedMedium(index);
}
代码示例来源:origin: redisson/redisson
@Override
protected int _getUnsignedMedium(int index) {
return unwrap().getUnsignedMedium(index);
}
代码示例来源:origin: redisson/redisson
@Override
public int getUnsignedMedium(int index) {
checkIndex(index, 3);
return buffer.getUnsignedMedium(index);
}
代码示例来源:origin: redisson/redisson
@Override
public int getUnsignedMedium(int index) {
return unwrap().getUnsignedMedium(index);
}
代码示例来源:origin: redisson/redisson
@Override
public int getUnsignedMedium(int index) {
return unwrap().getUnsignedMedium(index);
}
代码示例来源:origin: netty/netty
@Override
protected int _getUnsignedMedium(int index) {
return unwrap().getUnsignedMedium(idx(index));
}
代码示例来源:origin: redisson/redisson
@Override
protected int _getUnsignedMedium(int index) {
return unwrap().getUnsignedMedium(idx(index));
}
代码示例来源:origin: netty/netty
@Override
public int getUnsignedMedium(int index) {
checkIndex0(index, 3);
return unwrap().getUnsignedMedium(idx(index));
}
代码示例来源:origin: redisson/redisson
@Override
public int getUnsignedMedium(int index) {
checkIndex0(index, 3);
return unwrap().getUnsignedMedium(idx(index));
}
代码示例来源:origin: netty/netty
@Override
protected int _getUnsignedMedium(int index) {
Component c = findComponent(index);
if (index + 3 <= c.endOffset) {
return c.buf.getUnsignedMedium(index - c.offset);
} else if (order() == ByteOrder.BIG_ENDIAN) {
return (_getShort(index) & 0xffff) << 8 | _getByte(index + 2) & 0xff;
} else {
return _getShort(index) & 0xFFFF | (_getByte(index + 2) & 0xFF) << 16;
}
}
代码示例来源:origin: netty/netty
@Override
protected int _getUnsignedMedium(int index) {
Component c = findComponent0(index);
if (index + 3 <= c.endOffset) {
return c.buf.getUnsignedMedium(c.idx(index));
} else if (order() == ByteOrder.BIG_ENDIAN) {
return (_getShort(index) & 0xffff) << 8 | _getByte(index + 2) & 0xff;
} else {
return _getShort(index) & 0xFFFF | (_getByte(index + 2) & 0xFF) << 16;
}
}
代码示例来源:origin: redisson/redisson
@Override
protected int _getUnsignedMedium(int index) {
Component c = findComponent(index);
if (index + 3 <= c.endOffset) {
return c.buf.getUnsignedMedium(index - c.offset);
} else if (order() == ByteOrder.BIG_ENDIAN) {
return (_getShort(index) & 0xffff) << 8 | _getByte(index + 2) & 0xff;
} else {
return _getShort(index) & 0xFFFF | (_getByte(index + 2) & 0xFF) << 16;
}
}
代码示例来源:origin: redisson/redisson
@Override
protected int _getUnsignedMedium(int index) {
Component c = findComponent0(index);
if (index + 3 <= c.endOffset) {
return c.buf.getUnsignedMedium(c.idx(index));
} else if (order() == ByteOrder.BIG_ENDIAN) {
return (_getShort(index) & 0xffff) << 8 | _getByte(index + 2) & 0xff;
} else {
return _getShort(index) & 0xFFFF | (_getByte(index + 2) & 0xFF) << 16;
}
}
内容来源于网络,如有侵权,请联系作者删除!