Name: fast_buf_read/2
Module: fastrw
Name: fast_buf_write/3
Name: write_term_to_file/2
Name: read_term_from_file/2
foreign(write_to_file, write_to_file(+address(char),+integer, +string)). foreign(read_from_file, read_from_file(+string, -address)).
foreign_resource(fastload,[ write_to_file, read_from_file]).
read_term_from_file(File, Term) :- read_from_file(File, Addr), fast_buf_read(Term, Addr).
Calls:
Name: read_from_file/2
write_term_to_file(Term, File) :- fast_buf_write(Term,Len,Addr), write_to_file(Addr, Len, File).
Name: write_to_file/3