class AbstractByteBuf extends ByteBuf {

    @Override
    public ByteBuf duplicate() {
        ensureAccessible();
        return new UnpooledDuplicatedByteBuf(this);
    }

    protected  AbstractByteBuf(int maxCapacity);

}