Finalize encoding and get internal buffer. This can be called multiple times, in which cases the stream is finalized only the first time.
null in case of error (also isError flag), else an array of bytes.
See Implementation
Finalize encoding and get internal buffer. This can be called multiple times, in which cases the stream is finalized only the first time.