Menu

#159 undocumented and missing buffer i/o functions

closed-fixed
nobody
None
5
2006-02-27
2006-02-27
No

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.

Discussion

  • Scott G. Miller

    Scott G. Miller - 2006-02-27

    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.

     
  • Scott G. Miller

    Scott G. Miller - 2006-02-27

    Logged In: YES
    user_id=25869

    Completed in CVS.

     
  • Scott G. Miller

    Scott G. Miller - 2006-02-27
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB