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

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.

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