class HeapChannelBuffer extends AbstractChannelBuffer {

    @Override
    public void getBytes(int index, ChannelBuffer dst, int dstIndex, int length) {
        if (dst instanceof HeapChannelBuffer) {
            getBytes(index, ((HeapChannelBuffer) dst).array, dstIndex, length);
        } else {
            dst.setBytes(dstIndex, array, index, length);
        }
    }

    public  HeapChannelBuffer(int length);
    public  HeapChannelBuffer(byte[] array);
    protected  HeapChannelBuffer(byte[] array, int readerIndex, int writerIndex);

}