Custom Stream Buffers
by Robert Ramey
Standard library stream buffers std implement the actual i/o for standard library streams.
- A fast file stream buffer only for serial input and output. This wouldn’t support the trickier operations related to locales or positioning. Hopefully such file stream buffers would be much faster than those which come with the standard library.
- A stream buffer which would support the co-routine concept. Such a stream would allow control to pass from the writing stream to the reading stream and back so that buffering would be eliminated.
- A stream buffer which supported asynchronous i/o operations implemented by the operating system.
Hopefully these alternative stream buffers would be drop-in replacements for the standard ones sstream and fstream. Since they would be of restricted functionality, they should trap attempts to invoke capabilities that they have not implemented.
There are 0 comments