The data compression part of the VBS library allows to compress and uncompress data by using callback functions for input and output. This generic approach allows to manipulate data from any source to any destination without recoding the compression machine. The first callback parameter is a pointer to an internal buffer used for the I/O operation, the second is the user specified client data and the third the size of the buffer to read or write. The callback should return the number of bytes processed, e.g., how much data was read from or written to a file. Different algorithm for data compression can be selected:
A compression program vcpr is generated within the VBS project. It is used to create compressed patch data files for patch releases (see Section 6.5).