AutofilesSomewhat simpler loading of files

Xiqual 0.9.1

AutofilesSomewhat simpler loading of files


o file_new
Open an autofile.
o file_free
Close autofile and free all buffers.
o file_initbuf
Allocate a buffer of the given size.
o file_load
Load an entire file into memory.
o file_seek
Seek-wrapper for SEEK_SET functionality.
o file_scan
Seek-wrapper for SEEK_CUR functionality.
o file_read
Read a number of bytes into the buffer from an autofile.
o file_readhook
Set an autofile's read hook pointer.
Automagic file-handling. Well, sorta..you can set an autofile's read hook to do funky things while a file is loading piece by piece. It was originally meant to be used more throughout Xiqual, but has not, for some reason. It would be useful to let higher level functions accept an autofile with its hooks in place, so that you can do some extra "magic" while a function still does its manipulation.


This page was generated with the help of DOC++.