Reuse the out_buf of NvJPEGEncoder::encodeFromBuffer()

The documentation states: “The application must free the out_buf memory.”

Is it allowed to reuse the out_buf for further calls of encodeFromBuffer() ?

( To avoid allocation and deallocation for every call of encodeFromBuffer() )