Buffer.compress() - Mtax-Development/GML-OOP GitHub Wiki

Arguments

Name
Type
Optional
replace?
Yes
size?
{int}
Yes
offset?
{int}
Yes

Returns

{Buffer} | On error: {undefined}

Description

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.

⚠️ **GitHub.com Fallback** ⚠️