Compress in[0:len] into out. This returns false if the content cannot be compressed. The number of bytes written is guaranteed to be less than len otherwise.
in[0:len]
out
false
len