List of usage examples for io.netty.buffer SlicedByteBuf SlicedByteBuf
public SlicedByteBuf(ByteBuf buffer, int index, int length)
From source file:net.tomp2p.storage.AlternativeCompositeByteBuf.java
License:Apache License
@Override public ByteBuf slice(int index, int length) { if (length == 0) { return Unpooled.EMPTY_BUFFER; }// w w w .j av a 2s . c om return new SlicedByteBuf(this, index, length); }