private ByteBuf fillByteBuf() {
        int length = currentBuffer.readableBytes();
        if (length > HttpPostBodyUtil.chunkSize) {
            return currentBuffer.readRetainedSlice(HttpPostBodyUtil.chunkSize);
        } else {
            // to continue
            ByteBuf slice = currentBuffer;
            currentBuffer = null;
            return slice;
        }
    }
private ByteBuf fillByteBuf ( ) { int length = currentBuffer . readableBytes ( ) ; if ( length > HttpPostBodyUtil . chunkSize ) { return currentBuffer . readRetainedSlice ( HttpPostBodyUtil . chunkSize ) ; } else { ByteBuf slice = currentBuffer ; currentBuffer = null ; return slice ; } }
@return the next ByteBuf to send as a HttpChunk and modifying currentBuffer accordingly