[Alexandria-devel] add COPY-STREAM-CONTENT-INTO-{STRING, BYTE-VECTOR}?
Jan Moringen
jmoringe at techfak.uni-bielefeld.de
Sun Oct 5 12:19:26 UTC 2014
On Sun, 2014-10-05 at 13:17 +0200, Jan Moringen wrote:
> The patch adds the functions
> COPY-STREAM-CONTENT-INTO-{STRING,BYTE-VECTOR} which implement this
> feature. Despite the new toplevel functions, little new code is
> introduced since R-F-I-{S,B-V} can be implemented in terms of the new
> functions.
I missed that COPY-STREAM-CONTENT-INTO-BYTE-VECTOR called FILE-LENGTH,
pretty much defeating its purpose. Attached is an improved version that
is as efficient as before when the stream length is known and
geometrically grows the output buffer otherwise.
Sorry and kind regards,
Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-add-COPY-STREAM-CONTENT-INTO-STRING-BYTE-VECTOR.patch
Type: text/x-patch
Size: 4868 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/alexandria-devel/attachments/20141005/fbd5b954/attachment.bin>
More information about the alexandria-devel
mailing list