本文整理了Java中io.netty.buffer.ByteBuf.setMedium()
方法的一些代码示例,展示了ByteBuf.setMedium()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ByteBuf.setMedium()
方法的具体详情如下:
包路径:io.netty.buffer.ByteBuf
类名称:ByteBuf
方法名:setMedium
[英]Sets the specified 24-bit medium integer at the specified absolute index in this buffer. Please note that the most significant byte is ignored in the specified value. This method does not modify readerIndex or writerIndex of this buffer.
[中]在此缓冲区中指定的绝对索引处设置指定的24位中间整数。请注意,指定值中的最高有效字节被忽略。此方法不修改此缓冲区的readerIndex或writerIndex。
代码示例来源:origin: netty/netty
@Override
public ByteBuf setMediumLE(int index, int value) {
buf.setMedium(index, value);
return this;
}
代码示例来源:origin: netty/netty
@Override
public ByteBuf setMedium(int index, int value) {
buf.setMedium(index, value);
return this;
}
代码示例来源:origin: redisson/redisson
@Override
public ByteBuf setMediumLE(int index, int value) {
buf.setMedium(index, value);
return this;
}
代码示例来源:origin: redisson/redisson
@Override
public ByteBuf setMedium(int index, int value) {
buf.setMedium(index, value);
return this;
}
代码示例来源:origin: wildfly/wildfly
@Override
public ByteBuf setMediumLE(int index, int value) {
buf.setMedium(index, value);
return this;
}
代码示例来源:origin: netty/netty
@Override
public ByteBuf setMedium(int index, int value) {
unwrap().setMedium(index, value);
return this;
}
代码示例来源:origin: netty/netty
@Override
public ByteBuf setMedium(int index, int value) {
buf.setMedium(index, ByteBufUtil.swapMedium(value));
return this;
}
代码示例来源:origin: netty/netty
@Override
protected void _setMedium(int index, int value) {
unwrap().setMedium(index, value);
}
代码示例来源:origin: redisson/redisson
@Override
public ByteBuf setMedium(int index, int value) {
unwrap().setMedium(index, value);
return this;
}
代码示例来源:origin: eclipse-vertx/vert.x
public Buffer setMedium(int pos, int i) {
ensureWritable(pos, 3);
buffer.setMedium(pos, i);
return this;
}
代码示例来源:origin: redisson/redisson
@Override
public ByteBuf setMedium(int index, int value) {
buf.setMedium(index, ByteBufUtil.swapMedium(value));
return this;
}
代码示例来源:origin: redisson/redisson
@Override
protected void _setMedium(int index, int value) {
unwrap().setMedium(index, value);
}
代码示例来源:origin: wildfly/wildfly
@Override
public ByteBuf setMedium(int index, int value) {
unwrap().setMedium(index, value);
return this;
}
代码示例来源:origin: netty/netty
@Override
protected void _setMedium(int index, int value) {
unwrap().setMedium(idx(index), value);
}
代码示例来源:origin: redisson/redisson
@Override
protected void _setMedium(int index, int value) {
unwrap().setMedium(idx(index), value);
}
代码示例来源:origin: netty/netty
@Override
public ByteBuf setMedium(int index, int value) {
checkIndex0(index, 3);
unwrap().setMedium(idx(index), value);
return this;
}
代码示例来源:origin: redisson/redisson
@Override
public ByteBuf setMedium(int index, int value) {
checkIndex0(index, 3);
unwrap().setMedium(idx(index), value);
return this;
}
代码示例来源:origin: wildfly/wildfly
@Override
public ByteBuf setMedium(int index, int value) {
checkIndex0(index, 3);
unwrap().setMedium(idx(index), value);
return this;
}
代码示例来源:origin: netty/netty
@Override
protected void _setMedium(int index, int value) {
Component c = findComponent0(index);
if (index + 3 <= c.endOffset) {
c.buf.setMedium(c.idx(index), value);
} else if (order() == ByteOrder.BIG_ENDIAN) {
_setShort(index, (short) (value >> 8));
_setByte(index + 2, (byte) value);
} else {
_setShort(index, (short) value);
_setByte(index + 2, (byte) (value >>> 16));
}
}
代码示例来源:origin: redisson/redisson
@Override
protected void _setMedium(int index, int value) {
Component c = findComponent0(index);
if (index + 3 <= c.endOffset) {
c.buf.setMedium(c.idx(index), value);
} else if (order() == ByteOrder.BIG_ENDIAN) {
_setShort(index, (short) (value >> 8));
_setByte(index + 2, (byte) value);
} else {
_setShort(index, (short) value);
_setByte(index + 2, (byte) (value >>> 16));
}
}
内容来源于网络,如有侵权,请联系作者删除!