zip
create
create()
-> zip
Creates a new empty archive.
Usage
local z = zip.create();
open
open(path: string)
-> zip
Opens a ZIP archive from file.
Parameters
Name | Type | Description |
---|---|---|
path |
string | Path to ZIP archive |
Usage
local z = zip.open('my_arc.zip');
open_stream
open_stream(data: table[char])
-> zip
Opens a ZIP archive from byte stream.
Parameters
Name | Type | Description |
---|---|---|
data |
table[char] | Table of chars |
Usage
local z = zip.open_stream(my_stream);