Solid File System

Virtual file system enigne that can be embedded into your software.

Callback mode

By default SolFS keeps the storage in the file located on the disk. However, SolFS engine doesn't really care about where the data is stored. You can keep the storage in the file or on raw disk partition, in memory or somewhere across network. The only thing SolFS needs is possibility to get random access to the pages of the storage.

To keep the storage in other locations, you need to use so-called callback mode (read general introduction to callback mode online in SolFS knowledgebase). In this mode SolFS will fire various OnFile* events (see the event list below) which you must handle. The events are not hard to handle and they all map quite closely to Windows File API. The events were designed to be very easy to implement. Actual processing of each of the 10 events that you need to handle can take as little as one call to the underlying API.

One of scenarios for use of callback mode is keeping the compound file in memory for fast operations. For example, help authoring tool, used to create this Help file, stores all topics in separate files in SolFS storage. The storage itself is a help project. Help authoring tool loads the help project to a memory stream and uses callback mode to work with the storage. When the user needs to save the project, the storage is flushed and memory stream is copied to disk file.

Read more about callbacks in How-to section

Back to top