[squeak-dev] Re: StandardFileStream>>#readInto:startingAt:count: appears badly broken

Chris Muller asqueaker at gmail.com
Mon Mar 15 15:22:27 UTC 2010

My sense is that StandardFileStream>>#readInto:startingAt:count: was
supposed to provide (outside) access to the primitive method,
#primRead:into:startingAt:count.  Now we don't have access to that
primitive at all without doing a bunch of other stuff.  So I'm
hard-pressed to believe this is really going to perform better...

On Mon, Mar 15, 2010 at 10:02 AM, Chris Muller <asqueaker at gmail.com> wrote:
> The method, as stated by its comment, is supposed to answer the number
> of bytes actually transferred from the file-system.  In fact, it
> answers the size of the String input into the method.
> Magma won't even come close to running in the trunk image with this
> problem.  StandardFileStream>>#readInto:startingAt:count: is breaking
> its contract.
> Nicolas and/or Levente, can you help?  These recent changes you made
> appear to be an optimization of FileStream?
> Thanks,
>  Chris

More information about the Squeak-dev mailing list