本文整理了Java中io.netty.buffer.ByteBuf.setIntLE()
方法的一些代码示例,展示了ByteBuf.setIntLE()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ByteBuf.setIntLE()
方法的具体详情如下:
包路径:io.netty.buffer.ByteBuf
类名称:ByteBuf
方法名:setIntLE
[英]Sets the specified 32-bit integer at the specified absolute index in this buffer with Little Endian byte order . This method does not modify readerIndex or writerIndex of this buffer.
[中]在此缓冲区中指定的绝对索引处设置指定的32位整数,并使用小的尾数字节顺序。此方法不修改此缓冲区的readerIndex或writerIndex。
代码示例来源:origin: netty/netty
@Override
public ByteBuf setIntLE(int index, int value) {
buf.setIntLE(index, value);
return this;
}
代码示例来源:origin: redisson/redisson
@Override
public ByteBuf setIntLE(int index, int value) {
buf.setIntLE(index, value);
return this;
}
代码示例来源:origin: netty/netty
/**
* Sets the specified 32-bit floating-point number at the specified
* absolute {@code index} in this buffer in Little Endian Byte Order.
* This method does not modify {@code readerIndex} or {@code writerIndex} of
* this buffer.
*
* @throws IndexOutOfBoundsException
* if the specified {@code index} is less than {@code 0} or
* {@code index + 4} is greater than {@code this.capacity}
*/
public ByteBuf setFloatLE(int index, float value) {
return setIntLE(index, Float.floatToRawIntBits(value));
}
代码示例来源:origin: wildfly/wildfly
@Override
public ByteBuf setIntLE(int index, int value) {
buf.setIntLE(index, value);
return this;
}
代码示例来源:origin: redisson/redisson
/**
* Sets the specified 32-bit floating-point number at the specified
* absolute {@code index} in this buffer in Little Endian Byte Order.
* This method does not modify {@code readerIndex} or {@code writerIndex} of
* this buffer.
*
* @throws IndexOutOfBoundsException
* if the specified {@code index} is less than {@code 0} or
* {@code index + 4} is greater than {@code this.capacity}
*/
public ByteBuf setFloatLE(int index, float value) {
return setIntLE(index, Float.floatToRawIntBits(value));
}
代码示例来源:origin: netty/netty
@Override
public ByteBuf setIntLE(int index, int value) {
unwrap().setIntLE(index, value);
return this;
}
代码示例来源:origin: netty/netty
@Override
protected void _setIntLE(int index, int value) {
unwrap().setIntLE(index, value);
}
代码示例来源:origin: eclipse-vertx/vert.x
public Buffer setUnsignedIntLE(int pos, long i) {
ensureWritable(pos, 4);
buffer.setIntLE(pos, (int) i);
return this;
}
代码示例来源:origin: eclipse-vertx/vert.x
public Buffer setIntLE(int pos, int i) {
ensureWritable(pos, 4);
buffer.setIntLE(pos, i);
return this;
}
代码示例来源:origin: redisson/redisson
@Override
public ByteBuf setIntLE(int index, int value) {
unwrap().setIntLE(index, value);
return this;
}
代码示例来源:origin: redisson/redisson
@Override
protected void _setIntLE(int index, int value) {
unwrap().setIntLE(index, value);
}
代码示例来源:origin: wildfly/wildfly
@Override
public ByteBuf setIntLE(int index, int value) {
unwrap().setIntLE(index, value);
return this;
}
代码示例来源:origin: netty/netty
@Override
protected void _setIntLE(int index, int value) {
unwrap().setIntLE(idx(index), value);
}
代码示例来源:origin: redisson/redisson
@Override
protected void _setIntLE(int index, int value) {
unwrap().setIntLE(idx(index), value);
}
代码示例来源:origin: netty/netty
@Override
public ByteBuf setIntLE(int index, int value) {
checkIndex0(index, 4);
unwrap().setIntLE(idx(index), value);
return this;
}
代码示例来源:origin: redisson/redisson
@Override
public ByteBuf setIntLE(int index, int value) {
checkIndex0(index, 4);
unwrap().setIntLE(idx(index), value);
return this;
}
代码示例来源:origin: netty/netty
out.setIntLE(idx + COMPRESSED_LENGTH_OFFSET, compressedLength);
out.setIntLE(idx + DECOMPRESSED_LENGTH_OFFSET, flushableBytes);
out.setIntLE(idx + CHECKSUM_OFFSET, check);
out.writerIndex(idx + HEADER_LENGTH + compressedLength);
buffer.clear();
代码示例来源:origin: wildfly/wildfly
@Override
public ByteBuf setIntLE(int index, int value) {
checkIndex0(index, 4);
unwrap().setIntLE(idx(index), value);
return this;
}
代码示例来源:origin: netty/netty
@Override
protected void _setIntLE(int index, int value) {
Component c = findComponent0(index);
if (index + 4 <= c.endOffset) {
c.buf.setIntLE(c.idx(index), value);
} else if (order() == ByteOrder.BIG_ENDIAN) {
_setShortLE(index, (short) value);
_setShortLE(index + 2, (short) (value >>> 16));
} else {
_setShortLE(index, (short) (value >>> 16));
_setShortLE(index + 2, (short) value);
}
}
代码示例来源:origin: redisson/redisson
@Override
protected void _setIntLE(int index, int value) {
Component c = findComponent0(index);
if (index + 4 <= c.endOffset) {
c.buf.setIntLE(c.idx(index), value);
} else if (order() == ByteOrder.BIG_ENDIAN) {
_setShortLE(index, (short) value);
_setShortLE(index + 2, (short) (value >>> 16));
} else {
_setShortLE(index, (short) (value >>> 16));
_setShortLE(index + 2, (short) value);
}
}
内容来源于网络,如有侵权,请联系作者删除!