Maybe call this something other than result, as this is not in fact the result of the compression operation? `spaceLeft`?