undocumented and missing buffer i/o functions
Brought to you by:
mradestock,
scgmille
The functions
open-input-buffer
open-output-buffer
get-output-buffer
exported by the 'buffers' module appear to be undocumented.
I reckon these functions should actually go into a
buffer-io module, analogous to string-io. That module
should also export the (currently missing) wrapper
functions with-{input-from,output-to}-buffer, and
call-with-{input,output}-buffer.
We could also add predicates buffer-output-port? and
buffer-input-port? though we'd not be able to come up
with types since buffer ports are just binary ports
which happen to read from/write to a ByteArray stream.
Logged In: YES
user_id=25869
I agree with the buffer-io additions and changes. I'm wary
of making any typing changes though, since the I/O system
needs a rewrite anyway to allow user defined I/O ports
without the unacceptable overhead of generic functions.
Logged In: YES
user_id=25869
Completed in CVS.