# Function Calls

The Compression folio currently includes the following calls, which are listed here by the type of function they perform.

## Convenience calls

- `Compress()` Compresses a chunk of memory to a different chunk of memory.
- `Decompress()` Decompresses a chunk of memory to a different chunk of memory

The following calls are convenience calls:

## Compression Calls

- `CreateCompressor()` Creates a compression engine.
- `FeedCompressor()` Gives data to a compressor engine to compress and pass to the output function.
- `DeleteCompressor()` Deletes the compressor engine.

The following calls compress data:

## Decompression Calls

The following calls compress data:

- `CreateDecompressor()` Creates a decompression engine.
- `FeedDecompressor()` Gives data to a decompressor engine to have it decompressed and pass it to the output function.
- `DeleteDecompressor()` Deletes the decompressor engine.

## Buffer Calls

The following calls get the size of working buffers:

- `GetCompressorWorkBufferSize()` Gets the size of the work buffer needed by a compression engine.
- `GetDecompressorWorkBufferSize()` Gets the size of the work buffer needed by a decompression engine.