[plt-scheme] open-output-string/bytes internals

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Thu Jul 10 16:36:04 EDT 2008

At Thu, 10 Jul 2008 13:29:05 -0700, YC wrote:
> I'm wondering how `open-output-string` and `open-output-bytes` keep the data
> written to the port.  Are the data kept in one single contiguous bytes that
> gets resized as more bytes are written to it, 

Yes, using the usual strategy of doubling the buffer size when it's
full.

Matthew



Posted on the users mailing list.