zlib compress and uncompress on bit string << 255, 3:2 >>.
rgowka1
rgowka1@REDACTED
Thu Oct 28 02:37:14 CEST 2010
Hi -
I am using zlib:compress and uncompress on bitstring.
The expression zlib:uncompress( zlib:compress ( << 255, 3:2 >> )) =:=
<< 255, 3:2 >> is evaluating to false.
zlib:uncompress( zlib:compress ( << 255, 3:2 >> )).
<<"ÿ">>
<< << X >> || << X:1 >> <= <<"ÿ">> >>.
<<1,1,0,0,0,0,1,1,1,0,1,1,1,1,1,1>>
<< << X >> || << X:1 >> <= << 255, 3:2 >> >>.
<<1,1,1,1,1,1,1,1,1,1>>
Is this a bug with the zlib library or am I missing something basic here?
thanks
More information about the erlang-questions
mailing list