This event is fired when the encoder has encoded data ready to be written to a file or a socket.
This event is fired only when nil is used as the output file parameter.
Due to the nature of the algorithm, there is no OnReadEncoded event for in place decoding.
The reason is that the algorithm requires jumps within the file while it is decoded.