本文整理了Java中io.netty.buffer.ByteBuf.setCharSequence()
方法的一些代码示例,展示了ByteBuf.setCharSequence()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ByteBuf.setCharSequence()
方法的具体详情如下:
包路径:io.netty.buffer.ByteBuf
类名称:ByteBuf
方法名:setCharSequence
[英]Writes the specified CharSequence at the current writerIndex and increases the writerIndex by the written bytes.
[中]在当前writerIndex处写入指定的CharSequence,并将writerIndex增加写入的字节数。
代码示例来源:origin: netty/netty
@Override
public int setCharSequence(int index, CharSequence sequence, Charset charset) {
return buf.setCharSequence(index, sequence, charset);
}
代码示例来源:origin: netty/netty
@Override
public int setCharSequence(int index, CharSequence sequence, Charset charset) {
return buf.setCharSequence(index, sequence, charset);
}
代码示例来源:origin: redisson/redisson
@Override
public int setCharSequence(int index, CharSequence sequence, Charset charset) {
return buf.setCharSequence(index, sequence, charset);
}
代码示例来源:origin: redisson/redisson
@Override
public int setCharSequence(int index, CharSequence sequence, Charset charset) {
return buf.setCharSequence(index, sequence, charset);
}
代码示例来源:origin: micronaut-projects/micronaut-core
@Override
public int setCharSequence(int index, CharSequence sequence, Charset charset) {
return byteBuf.setCharSequence(index, sequence, charset);
}
代码示例来源:origin: wildfly/wildfly
@Override
public int setCharSequence(int index, CharSequence sequence, Charset charset) {
return buf.setCharSequence(index, sequence, charset);
}
代码示例来源:origin: wildfly/wildfly
@Override
public int setCharSequence(int index, CharSequence sequence, Charset charset) {
return buf.setCharSequence(index, sequence, charset);
}
代码示例来源:origin: netty/netty
private static void writeAscii(ByteBuf buf, int offset, CharSequence value) {
if (value instanceof AsciiString) {
ByteBufUtil.copy((AsciiString) value, 0, buf, offset, value.length());
} else {
buf.setCharSequence(offset, value, CharsetUtil.US_ASCII);
}
}
}
代码示例来源:origin: eclipse-vertx/vert.x
private static void writeAscii(ByteBuf buf, int offset, CharSequence value) {
if (value instanceof AsciiString) {
ByteBufUtil.copy((AsciiString) value, 0, buf, offset, value.length());
} else {
buf.setCharSequence(offset, value, CharsetUtil.US_ASCII);
}
}
代码示例来源:origin: redisson/redisson
private static void writeAscii(ByteBuf buf, int offset, CharSequence value) {
if (value instanceof AsciiString) {
ByteBufUtil.copy((AsciiString) value, 0, buf, offset, value.length());
} else {
buf.setCharSequence(offset, value, CharsetUtil.US_ASCII);
}
}
}
代码示例来源:origin: wildfly/wildfly
private static void writeAscii(ByteBuf buf, int offset, CharSequence value) {
if (value instanceof AsciiString) {
ByteBufUtil.copy((AsciiString) value, 0, buf, offset, value.length());
} else {
buf.setCharSequence(offset, value, CharsetUtil.US_ASCII);
}
}
}
代码示例来源:origin: wildfly/wildfly
private static void writeAscii(ByteBuf buf, int offset, CharSequence value) {
if (value instanceof AsciiString) {
ByteBufUtil.copy((AsciiString) value, 0, buf, offset, value.length());
} else {
buf.setCharSequence(offset, value, CharsetUtil.US_ASCII);
}
}
}
代码示例来源:origin: io.netty/netty-buffer
@Override
public int setCharSequence(int index, CharSequence sequence, Charset charset) {
return buf.setCharSequence(index, sequence, charset);
}
代码示例来源:origin: io.netty/netty-buffer
@Override
public int setCharSequence(int index, CharSequence sequence, Charset charset) {
return buf.setCharSequence(index, sequence, charset);
}
代码示例来源:origin: io.vertx/vertx-core
private static void writeAscii(ByteBuf buf, int offset, CharSequence value) {
if (value instanceof AsciiString) {
ByteBufUtil.copy((AsciiString) value, 0, buf, offset, value.length());
} else {
buf.setCharSequence(offset, value, CharsetUtil.US_ASCII);
}
}
代码示例来源:origin: apache/activemq-artemis
@Override
public int setCharSequence(int index, CharSequence sequence, Charset charset) {
return buf.setCharSequence(index, sequence, charset);
}
代码示例来源:origin: io.ratpack/ratpack-core
@Override
public int setCharSequence(int index, CharSequence sequence, Charset charset) {
return delegate.setCharSequence(index, sequence, charset);
}
代码示例来源:origin: ProtocolSupport/ProtocolSupport
@Override
public int setCharSequence(final int n, final CharSequence charSequence, final Charset charset) {
return this.buf.setCharSequence(n, charSequence, charset);
}
代码示例来源:origin: org.apache.activemq/artemis-jms-client-all
private static void writeAscii(ByteBuf buf, int offset, CharSequence value) {
if (value instanceof AsciiString) {
ByteBufUtil.copy((AsciiString) value, 0, buf, offset, value.length());
} else {
buf.setCharSequence(offset, value, CharsetUtil.US_ASCII);
}
}
}
代码示例来源:origin: io.netty/netty-codec
private static void writeAscii(ByteBuf buf, int offset, CharSequence value) {
if (value instanceof AsciiString) {
ByteBufUtil.copy((AsciiString) value, 0, buf, offset, value.length());
} else {
buf.setCharSequence(offset, value, CharsetUtil.US_ASCII);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!