help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] ZLib streams


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] ZLib streams
Date: Thu, 23 Aug 2007 09:55:30 +0200
User-agent: Thunderbird 2.0.0.6 (Macintosh/20070728)


Would it be possible to prevent the call to fillBuffer to not have
a blocking RawInflateStream creation and only have it block when _I_
call RawInflateStream>>#nextHunk?

Seems easy...


--- orig/packages/zlib/ZLibReadStream.st
+++ mod/packages/zlib/ZLibReadStream.st
@@ -145,9 +145,9 @@ position
 !ZlibReadStream methodsFor: 'private'!

 resetBuffer
+    ptr := 0.
     delta := 0.
-    endPtr := 0.
-    self fillBuffer!
+    endPtr := 0!

 initialize: aStream
     super initialize: aStream.


Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]