I am working on adapting some basic tools of mine to Pharo, and ran into
a trick that use often: specifically, I use ZLib and Dolphin's ability
to package globals to store compressed text for scripts, "empty"
document files, etc.  Then a small wrapper method uses ZLib to
uncompress the content of the global w/o having to store all of data in
the method source.  There are other solutions, but I do this frequently
and need to pick a way to handle it.

At the most basic level, I found the compression stream and archives
categories, but am unclear on where to look.  If I want to have a byte
array of data and "zip" or "unzip" it memory, is there a good entry
point?  Would I use a stream or an archive?  Please do not feel pressed
to do my browsing for me, but if somebody knows the answer, a class or
method name would be appreciated.

BTW, as further evidence of the accumulated effort, to check the jargon
above, I just fired up an early 3.9 image that was handy, and the
differences are striking!  Maybe I do want to lean on Damien for an
updated web image :)

Bill




Wilhelm K. Schwab, Ph.D.
University of Florida
Department of Anesthesiology
PO Box 100254
Gainesville, FL 32610-0254

Email: [EMAIL PROTECTED]
Tel: (352) 273-6785
FAX: (352) 392-7029


_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to