data library - SquidDev-CC/CCTweaks-Lua GitHub Wiki

The data library provides several functions for handling data which would be hard to implement in pure Lua.

Configuration

All configuration options live within the APIs.Data section:

  • enabled = true: Whether the data library is enabled
  • limit = 1048576: Maximum number of bytes which can be handled. The default is 1MiB

Documentation

inflate(data:string):string

Decompress a piece of data compressed using the DEFLATE algorithm.

deflate(data:string):string

Compress a piece of data using the DEFLATE algorithm.