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