next up previous contents index
Next: flush! Up: BinaryWriter Previous: berr,bout   Contents   Index


binaryWriter


Usage

binaryWriter f
binaryWriter(f, g)


Signatures

binaryWriter: (Byte $\to$ ()) $\to$ %
binaryWriter: (Byte $\to$ (), () $\to$ ()) $\to$ %


Parameter Type Description
f Byte $\to$ () the single-byte write function
g () $\to$ () the flush function (optional)


Returns

Returns the output stream for which $f(c)$ writes the byte $c$ and such that $g()$ flushes the stream. If g is not given, then flushing the resulting stream has no effect.



Manuel Bronstein 2004-06-28