Compute the max size of a buffer needed to hold the compressed result.
max size of compressed buffer
See Implementation
Compute the max size of a buffer needed to hold the compressed result.