Buffer.compress() - Mtax-Development/GML-OOP GitHub Wiki
Name |
Type |
Optional |
replace? |
{bool} |
Yes |
size? |
{int} |
Yes |
offset? |
{int} |
Yes |
{Buffer} | On error: {undefined}
Create a copy of this Buffer with either the entirety or a part of its data processed with zlib compression to reduce its size. A compressed Buffer will be returned, either as a separate copy or by replacing the reference of Buffer. A byte offset can be specified for where the operation will start and continue until either the specified amount of bytes was affected or the end of this Buffer was reached.