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

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

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

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());
  }
}

相关文章

ByteBuf类方法