Set the uncompressed content size to be written into the frame header.
size
The size of the uncompressed data to be provided to the compressor.
This method can be used to ensure the header of the frame about to
be written includes the size of the data, unless the
CompressionParameter.content_size_flag is set to False.
If last_mode != FLUSH_FRAME, then a RuntimeError is raised.
It is important to ensure that the pledged data size matches the
actual data size. If they do not match the compressed output data
may be corrupted and the final chunk written may be lost.