ICI Modules: serialisation: save

Modules by name : by type


save(any [ file ])


Writes a representation of the object passed as the first argument to the given file or to stdout if no file is given. If the object cannot be serialised or an I/O error occurs a suitable error is raised. The restore function may be used to read the object.

The protocol used to write the object uses a binary representation. Objects are sent as a one byte type tag followed by some object-specific representation. Multibyte elements use network byte order and IEEE-754 floating arithmetic is assumed. The protocol supports full ICI object semantics including atomic objects and self-referential objects.