本文整理了Java中io.netty.buffer.ByteBuf.copy()
方法的一些代码示例,展示了ByteBuf.copy()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ByteBuf.copy()
方法的具体详情如下:
包路径:io.netty.buffer.ByteBuf
类名称:ByteBuf
方法名:copy
[英]Returns a copy of this buffer's readable bytes. Modifying the content of the returned buffer or this buffer does not affect each other at all. This method is identical to buf.copy(buf.readerIndex(), buf.readableBytes()). This method does not modify readerIndex or writerIndex of this buffer.
[中]返回此缓冲区的可读字节的副本。修改返回的缓冲区或此缓冲区的内容不会相互影响。此方法与buf相同。复制(buf.readerIndex(),buf。readableBytes()。此方法不修改此缓冲区的readerIndex或writerIndex。
代码示例来源:origin: netty/netty
@Override
public ByteBuf copy() {
return buf.copy();
}
代码示例来源:origin: netty/netty
@Override
public ByteBuf copy(int index, int length) {
return buf.copy(index, length);
}
代码示例来源:origin: netty/netty
private static ByteBuf extractFrame(ByteBuf buffer, int index, int length) {
return buffer.copy(index, length);
}
代码示例来源:origin: redisson/redisson
@Override
public ByteBuf copy() {
return buf.copy();
}
代码示例来源:origin: redisson/redisson
@Override
public ByteBuf copy(int index, int length) {
return buf.copy(index, length);
}
代码示例来源:origin: apache/incubator-dubbo
@Override
public ChannelBuffer copy(int index, int length) {
return new NettyBackedChannelBuffer(buffer.copy(index, length));
}
代码示例来源:origin: apache/incubator-dubbo
@Override
public ChannelBuffer copy() {
return new NettyBackedChannelBuffer(buffer.copy());
}
代码示例来源:origin: netty/netty
@Override
public ByteBuf copy(int index, int length) {
checkIndex(index, length);
return buffer.copy(index, length);
}
代码示例来源:origin: netty/netty
/**
* {@inheritDoc}
* <p>
* This method calls {@code replace(content().copy())} by default.
*/
@Override
public ByteBufHolder copy() {
return replace(data.copy());
}
代码示例来源:origin: netty/netty
@Override
public ByteBuf copy(int index, int length) {
return unwrap().copy(index, length);
}
代码示例来源:origin: netty/netty
@Override
public ByteBuf copy() {
return buf.copy().order(order);
}
代码示例来源:origin: netty/netty
@Override
public ByteBuf copy(int index, int length) {
return buf.copy(index, length).order(order);
}
代码示例来源:origin: netty/netty
@Override
public ByteBuf copy(int index, int length) {
return unwrap().copy(index, length);
}
代码示例来源:origin: redisson/redisson
/**
* {@inheritDoc}
* <p>
* This method calls {@code replace(content().copy())} by default.
*/
@Override
public ByteBufHolder copy() {
return replace(data.copy());
}
代码示例来源:origin: redisson/redisson
@Override
public ByteBuf copy(int index, int length) {
checkIndex(index, length);
return buffer.copy(index, length);
}
代码示例来源:origin: redisson/redisson
@Override
public PemX509Certificate copy() {
return replace(content.copy());
}
代码示例来源:origin: netty/netty
@Override
public DatagramPacket copy() {
return replace(content().copy());
}
代码示例来源:origin: redisson/redisson
@Override
public DatagramPacket copy() {
return replace(content().copy());
}
代码示例来源:origin: netty/netty
@Override
public ByteBuf copy(int index, int length) {
checkIndex0(index, length);
return unwrap().copy(idx(index), length);
}
代码示例来源:origin: redisson/redisson
@Override
public ByteBuf copy(int index, int length) {
checkIndex0(index, length);
return unwrap().copy(idx(index), length);
}
内容来源于网络,如有侵权,请联系作者删除!