Writes the characters from
end of string
str to output port
to 0 and
end defaults to
Read a line from the input port
in, defaulting to
(current-input-port), and return the result as
a string not including the newline. Reads at most
characters, defaulting to 8192.
n characters from input-port
returns the result as a string. Returns
n is zero. May return a string with fewer
n characters if the end of file is reached,
or the eof-object if no characters are available.
n characters from port
(current-input-port), and writes
them into the string
str starting at index 0.
Returns the number of characters read.
An error is signalled if the length of
str is smaller
Sends the entire contents of a file or input port to an output port.
The fundamental port iterator.
read is a procedure of three arguments:
(lambda (str start end) ...) which should fill
end with bytes, returning the actual number
of bytes filled.
write is a procedure of three arguments:
(lambda (str start end) ...) which should write the bytes of
end, returning the actual
number of bytes written.
make-custom-input-port but returns a binary
read receives a bytevector to fill instead of a
make-custom-output-port but returns a binary
write receives data from a bytevector instead of a
A simple /dev/null port which accepts and does nothing with any data written to it.
A port to broadcast everything written to it to multiple output ports.
An output port which runs all output (in arbitrary string chunks)
An input port which acts as all of the
together in order.
A /dev/null input port which always returns
A utility to represent a port generated in chunks by the thunk
generator, which should return a single string representing
the next input to buffer, or
#f when there is no more
An input port which runs all input (in arbitrary string chunks)