Buffer.compress() - Mtax-Development/GML-OOP GitHub Wiki
Name |
Type |
Optional |
replace? |
{bool} |
Yes |
size? |
{int} |
Yes |
offset? |
{int} |
Yes |
{Buffer} | On error: {undefined}
Use the zlib compression to create a copy of this Buffer with entirety or part of its data compressed. A byte offset can be specified for where the operation will start and then continue until either the specified size in bytes was affected or the end of this Buffer is reached. A compressed Buffer will be returned. If this Buffer was replaced by it, self will be returned for this. Otherwise it will be a new, separate Buffer.