Author(s): Daniel Cabeza, Oscar Portela Arjona.
Version: 1.10#7 (2006/4/26, 19:22:13 CEST)
Version of last change: 1.7#16 (2000/8/29, 13:44:18 CEST)
This library provides predicates to support reading / writing of terms on a format designed to be handled on read faster than standard representation.
fastrw
)fastrw
)
fast_read(Term)
The next term is read from current standard input and is unified with Term
. The syntax of the term must agree with fast_read / fast_write format. If the end of the input has been reached, Term
is unified with the term 'end_of_file'. Further calls to
fast_read/1
will then cause an error.
fast_write(Term)
Output Term
in a way that
fast_read/1
and
fast_read/2
will be able to read it back.
fast_read(Stream, Term)
The next term is read from Stream
and unified with Term
. The syntax of the term must agree with fast_read / fast_write format. If the end of the input has been reached, Term
is unified with the term 'end_of_file'. Further calls to
fast_read/2
will then cause an error.
fast_write(Stream, Term)
Output Term
to Stream
in a way that
fast_read/1
and
fast_read/2
will be able to read it back.
No further documentation available for this predicate.
fastrw
)fast_read/2
and
fast_write/2
simply set the current output/input and call
fast_read/1
and
fast_write/1
. Therefore, in the event an error hapens during its execution, the current input / output streams may be left pointing to the Stream
Go to the first, previous, next, last section, table of contents.