Oh! Sorry, I got your problem wrongly. Please, ignore my previous answer.<div><br></div><div><br><br><div class="gmail_quote">On Fri, Aug 3, 2012 at 1:56 PM, CGS <span dir="ltr"><<a href="mailto:cgsmcmlxxv@gmail.com" target="_blank">cgsmcmlxxv@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi,</div><div><br></div>The reason you get no answer is because nobody can know the answer. And the reason no one can know the answer is that you haven't provided any information about what you have as compressed data. For example, a simple text can be compressed to in between 30% and 80% from its decompressed size (these numbers are not official, just examples), so, when deflated, the size can reach from 1.25 to 3.33 times the size of compressed text size. From my own experience (these are simple observations only), the range of compression is in between 10% and 100% (no compression could be applied) from the uncompressed data size. That means, the range of deflated data size is from 1 to 10 times the size of compressed data. Again, these numbers are for the sake of discussion and may not apply for your case.<div>

<br></div><div>You can find more info about zlib from:</div><div><a href="http://zlib.net/" target="_blank">http://zlib.net/</a></div><div><a href="http://en.wikipedia.org/wiki/Zlib" target="_blank">http://en.wikipedia.org/wiki/Zlib</a></div>
<div><a href="http://en.wikipedia.org/wiki/LZ77" target="_blank">http://en.wikipedia.org/wiki/LZ77</a> (LZ77 only)</div><span class="HOEnZb"><font color="#888888">
<div><br></div><div>CGS</div></font></span><div class="HOEnZb"><div class="h5"><div><br></div><div><br></div><div><br><br><div class="gmail_quote">On Thu, Aug 2, 2012 at 11:18 PM, Zabrane Mickael <span dir="ltr"><<a href="mailto:zabrane3@gmail.com" target="_blank">zabrane3@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Need help on this please!<br>
<div><div><br>
On Aug 2, 2012, at 5:19 PM, Zabrane Mickael wrote:<br>
<br>
> Hi guys,<br>
><br>
> I'm playing a bit with the zlib module today.<br>
><br>
> Let say I wan to uncompress a GzipData binary with zlib:inflate/2:<br>
> InflatedData = zlib:inflate(Z, GzipData).<br>
><br>
> In case of success, I want to know how many bytes from GzipData were used<br>
> internally to get the InflatedData?<br>
><br>
> Regards,<br>
> Zabrane<br>
><br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>