|
From: | Paolo Bonzini |
Subject: | Re: [Help-smalltalk] Re: [patch] Fix static content serving in Swazoo |
Date: | Thu, 03 Feb 2011 08:41:03 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7 |
On 02/02/2011 11:24 PM, Dmitry Matveev wrote:
+ nextAvailable: anInteger [ + | data stream read | + data := Array new: anInteger. + stream := WriteStream on: data. + read := self underlyingStream nextAvailable: anInteger putAllOn: stream. + ^data copyFrom: 1 to: read + ]
Thanks for the patch! But the above can be just nextAvailable: anInteger [ ^self underlyingStream nextAvailable: anInteger ] no? Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |