Provides basic interfaces to I/O primitives.
ConstantsConstants are variables with :const true in their metadata. Joker currently does not recognize them as special; as such, it allows redefining them or their values.
Functions, Macros, and Special Forms
Closes f (IOWriter, IOReader, or File) if possible. Otherwise throws an error.
(copy dst src)
Copies from src to dst until either EOF is reached on src or an error occurs.
Returns the number of bytes copied or throws an error.
src must be IOReader, e.g. as returned by joker.os/open.
dst must be IOWriter, e.g. as returned by joker.os/create.
Pipe creates a synchronous in-memory pipe. It can be used to connect code expecting an IOReader
with code expecting an IOWriter.
Returns a vector [reader, writer].