Skip to content
This repository has been archived by the owner on Jul 1, 2018. It is now read-only.

data library

SquidDev edited this page Sep 22, 2016 · 1 revision

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.

Clone this wiki locally