digitalmars.D.announce - zlibstream library
- Dan (246/246) Dec 26 2006 All,
- Gregor Richards (2/2) Dec 27 2006 zlibstream is now installable via `dsss net install zlibstream`
All, I cobbled together a stream class which compresses/uncompresses data on the fly. It comes in handy when transmitting compressed data over a socket via streams. I hope you find it useful as well. Dan begin 644 zlibstream.zip M4$L'"``````"`````````%!+`P04`` `"`#DJYHU````````````````%``` M+DI-+$E-T76J!`F8ZAG$&Y J:`27YBGX9B87Y1=7%I>DYA8K>.8EZVGR<O%R M````;6%I;BYD74Y-2\-`$#TWD/_P"!02:)-[ X(BGKR)"(J'[>XF&=S,E-V- M]0/_N]FVE.)A>,S[F'E- YLI#N(WN%,\3^]4R+.FP0-IR\%NL)NVCC2,C(KX M(#TKS MK1K;"S9$4\]#TOZCSL8/(8-4HJSPDV?`XT'#T8(KL-WC=NHZZZTY:F6B7N9_ MIS7/%I>F>W*V]$6T(=;Q,]:I65&ETU75)NADCND!Y>2$>SABR[*"'I1_?3NL M;QLW$OYL`_X/$P/7DQ)%4IQ<>K"B`&USN19(FL,E08$&AK':I2PV7%)'<NTH MS>"9S(5VXA2VU4K)'`I39E+SU$^9U5)?G((V^N[6FJ+*O30:<E.(*<!K)R#S M.*?E:-;B`$U<&PNE*//MCJ0*L:HNH"/K92E8PPREOS/EU KG\!"S2N?M-PB; ML[HG4#E4S MG]&VEV'Q*3R5R L;O_YZ=`BPM?(R\X*^D&N_??'J^_:`K`%_9TJ9'*6*(.0, M^`TF 5S/_$9 :FQ$_A:E+C(R#ZXV`H=MD!62/L.5L*)5`QE^(_.UP&U<9G?3 MC8=`O9#EOLH4 M:''`*G*C/;H%CV36&"W-QZGW0D](O:T\%)G/$ 6F\C=H:.U%'2B>*%D9H^"< MT B6L,Z4HU*(HU?68*S;88`/],-OI!O%K`B'FL#PB,N3^8._A E*^,& NE3+ M+Q!SGE>852L!CY?P\`%^Q]'E,7RL486JQ9N7_*&WZWB\B-:T%L.C)<QOMN5: M$+C>N/D-MK4V!+M<A04["O;R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U[AZ9-8T MTVLRKVNZ]TS]-B-I]KU/%?,N;_I2V;4P_WG:/MOK5_>]N??9X(FWO>RIIZ6] MWO8\%Y?-N&QIFOWJ4>KVVT=O]6?N7&X6*_[6;,ZK5_\>U=WC?[EUW:F8MO-K MZZU=K9^?#BE:_W%C[W.AB?LO_>EN?_9;+-;NS_W+)KX#C[[<W[5.;KE,\KS M```````````````(````36%K969I;&5U4DU/XS`0/3=2_L-(<"!(\0^(M(?0 M%G\;P^LP.(&E%LK6*H%=4Q M0)9;KBTQ?WAEM=TD8$L;[ZI2-L+ITL);PXUV M7R!*J1C`0ZV`._ JFPK*#PN5KE MH\- :&MKM%405\HHCBGQ+=FNTL7-.K^;HH(F93(,EHL+K/9&%[6K%-\R1+Z[ MOKVX'C-E\8(1]'^*.#T[N$7P-PPF1T*TO7^\7\\7RXR4=UDZ6V7,?3J87J4W MEUE..`SR=/6[5=#TGC\`MO=CA`$W!A(0N(0=)7IZ(K<2N^W6T8 _/<,5(G)` M)3H,=8L.+=H2VQ-2Q:*3C: P:-,3RE,&SIGZ5#WV-^GPEN]ZW,WG\5X/_8*[ M[[Z0`Q0#Q M 1IQI!&M9CIHO`_.B6>A2QR]I1\>N5''^[SP"L3[TS]BRO:?"%VQ_PJBX;+= M````````"0`$````````````````````345402U)3D8O_LH``%!+`0(4`!0` M"``(`.2KFC4!U=)S1P```$<````4`````````````````#T```!-151!+4E. M1B]-04Y)1D535"Y-1E!+`0(4`!0`"``(`*2KFC4-DO9%]0```'<!```&```` M`````````````,8```!M86EN+F102P$"%``4`` `"`"GJYHU(IB&Z X*``#C MHJN:-8`39J1K`P``8P8```H`````````````````-PP``%)%041-12YT>'10 M0TA!3D=%4RYT>'102P$"%``4`` `"`#DJYHU MY3D!``!UM```"``````````````````7(P``=&5S="YT>'102P$"%``4`` ` M"`#P0 ` end
Dec 26 2006
zlibstream is now installable via `dsss net install zlibstream` - Gregor Richards
Dec 27 2006