Go to the first, previous, next, last section, table of contents.


Fast reading and writing of terms

Author(s): Daniel Cabeza, Oscar Portela Arjona.

Version: 1.10#6 (2004/8/7, 21:46:39 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.

Usage and interface (fastrw)

Documentation on exports (fastrw)

PREDICATE: fast_read/1:

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.

PREDICATE: fast_write/1:

fast_write(Term)

Output Term in a way that fast_read/1 and fast_read/2 will be able to read it back.

PREDICATE: fast_read/2:

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.

PREDICATE: fast_write/2:

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.

PREDICATE: fast_write_to_string/3:

No further documentation available for this predicate.

Known bugs and planned improvements (fastrw)


Go to the first, previous, next, last section, table of contents.