# HG changeset patch # User Claus Gittinger # Date 1484309037 -3600 # Node ID 3be6896552e2052ebdc6b0188c89dae364a241b1 # Parent 78c1a6dc76d4f3a5b5be8b24d44ae4fece81db15 #OTHER by cg category diff -r 78c1a6dc76d4 -r 3be6896552e2 ZipStream.st --- a/ZipStream.st Fri Jan 13 13:03:54 2017 +0100 +++ b/ZipStream.st Fri Jan 13 13:03:57 2017 +0100 @@ -1,5 +1,3 @@ -"{ Encoding: utf8 }" - " COPYRIGHT (c) 2002 by eXept Software AG All Rights Reserved @@ -20,7 +18,7 @@ classVariableNames:'Z_DEFLATED HEAD_OS_CODE HEAD_RESERVED HEAD_EXTRA_FIELD HEAD_ORIG_NAME HEAD_COMMENT HEAD_CRC GZ_MAGIC_ID' poolDictionaries:'' - category:'System-Compress' + category:'Streams-Compressed' ! !ZipStream primitiveDefinitions! @@ -73,10 +71,10 @@ documentation " - Zip compression and decompression (used in gzip and zip) + Zip compression and decompression (as used in gzip and zip) [author:] - Claus Atzkern + Claus Atzkern [instance variables:] @@ -228,11 +226,11 @@ !ZipStream class methodsFor:'ZipInterface compatibility - compress/uncompress'! compress: aUncompressedByteArray into: aCompressedByteArray - ^ self flatBytesIn: aUncompressedByteArray - from: 1 - to: (aUncompressedByteArray size) - into: aCompressedByteArray - doCompress: true. + ^ self + flatBytesIn: aUncompressedByteArray + from: 1 to: (aUncompressedByteArray size) + into: aCompressedByteArray + doCompress: true. ! flatBytesIn:bytesIn from:start to:stop into:bytesOut doCompress:doCompress @@ -295,12 +293,12 @@ self error:('compressing error: ', errorNr printString). ! -uncompress: aCompressedByteArray into: aUncompressedByteArray - ^ self flatBytesIn: aCompressedByteArray - from: 1 - to: (aCompressedByteArray size) - into: aUncompressedByteArray - doCompress: false. +uncompress: aCompressedByteArray into: anUncompressedByteArray + ^ self + flatBytesIn: aCompressedByteArray + from: 1 to: (aCompressedByteArray size) + into: anUncompressedByteArray + doCompress: false. ! ! !ZipStream class methodsFor:'ZipInterface compatibility - crc'!