本文整理了Java中io.netty.buffer.ByteBuf.setZero()
方法的一些代码示例,展示了ByteBuf.setZero()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ByteBuf.setZero()
方法的具体详情如下:
包路径:io.netty.buffer.ByteBuf
类名称:ByteBuf
方法名:setZero
[英]Fills this buffer with NUL (0x00) starting at the specified absolute index. This method does not modify readerIndex or writerIndex of this buffer.
[中]从指定的绝对索引开始,使用NUL(0x00)填充此缓冲区。此方法不修改此缓冲区的readerIndex或writerIndex。
代码示例来源:origin: netty/netty
@Override
public ByteBuf setZero(int index, int length) {
buf.setZero(index, length);
return this;
}
代码示例来源:origin: netty/netty
@Override
public ByteBuf setZero(int index, int length) {
buf.setZero(index, length);
return this;
}
代码示例来源:origin: redisson/redisson
@Override
public ByteBuf setZero(int index, int length) {
buf.setZero(index, length);
return this;
}
代码示例来源:origin: redisson/redisson
@Override
public ByteBuf setZero(int index, int length) {
buf.setZero(index, length);
return this;
}
代码示例来源:origin: wildfly/wildfly
@Override
public ByteBuf setZero(int index, int length) {
buf.setZero(index, length);
return this;
}
代码示例来源:origin: wildfly/wildfly
@Override
public ByteBuf setZero(int index, int length) {
buf.setZero(index, length);
return this;
}
代码示例来源:origin: micronaut-projects/micronaut-core
@Override
public ByteBuf setZero(int index, int length) {
byteBuf.setZero(index, length);
return this;
}
代码示例来源:origin: redisson/redisson
/**
* Fills the {@link ByteBuf} with zero bytes.
*/
static void zeroout(ByteBuf buffer) {
if (!buffer.isReadOnly()) {
buffer.setZero(0, buffer.capacity());
}
}
代码示例来源:origin: wildfly/wildfly
/**
* Fills the {@link ByteBuf} with zero bytes.
*/
static void zeroout(ByteBuf buffer) {
if (!buffer.isReadOnly()) {
buffer.setZero(0, buffer.capacity());
}
}
代码示例来源:origin: apache/drill
data.setZero(startIndex, nDecimalDigits * INTEGER_SIZE);
代码示例来源:origin: io.netty/netty-buffer
@Override
public ByteBuf setZero(int index, int length) {
buf.setZero(index, length);
return this;
}
代码示例来源:origin: io.netty/netty-buffer
@Override
public ByteBuf setZero(int index, int length) {
buf.setZero(index, length);
return this;
}
代码示例来源:origin: io.netty/netty-handler
/**
* Fills the {@link ByteBuf} with zero bytes.
*/
static void zeroout(ByteBuf buffer) {
if (!buffer.isReadOnly()) {
buffer.setZero(0, buffer.capacity());
}
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
@Override
public ByteBuf setZero(int index, int length) {
buf.setZero(index, length);
return this;
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
@Override
public ByteBuf setZero(int index, int length) {
buf.setZero(index, length);
return this;
}
代码示例来源:origin: apache/activemq-artemis
@Override
public ByteBuf setZero(int index, int length) {
buf.setZero(index, length);
return this;
}
代码示例来源:origin: apache/activemq-artemis
@Override
public ByteBuf setZero(int index, int length) {
buf.setZero(index, length);
return this;
}
代码示例来源:origin: io.ratpack/ratpack-core
@Override
public ByteBuf setZero(int index, int length) {
delegate.setZero(index, length);
return this;
}
代码示例来源:origin: apache/activemq-artemis
/**
* Fills the {@link ByteBuf} with zero bytes.
*/
static void zeroout(ByteBuf buffer) {
if (!buffer.isReadOnly()) {
buffer.setZero(0, buffer.capacity());
}
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
/**
* Fills the {@link ByteBuf} with zero bytes.
*/
static void zeroout(ByteBuf buffer) {
if (!buffer.isReadOnly()) {
buffer.setZero(0, buffer.capacity());
}
}
内容来源于网络,如有侵权,请联系作者删除!