RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
com.osroyale.fs.util.CompressionUtil Class Reference

Static Public Member Functions

static byte[] gunzip (byte[] data) throws IOException
static byte[] unbzip2Headerless (byte[] data, int offset, int length) throws IOException
static byte[] unbzip2 (byte[] data) throws IOException

Detailed Description

/**

Definition at line 44 of file CompressionUtil.java.

Member Function Documentation

◆ gunzip()

byte[] com.osroyale.fs.util.CompressionUtil.gunzip ( byte[] data) throws IOException
inlinestatic

Uncompresses a byte array of g-zipped data.

Parameters
dataThe compressed, g-zipped data.
Returns
The uncompressed data.
Exceptions
IOExceptionIf some I/O exception occurs.

Definition at line 52 of file CompressionUtil.java.

◆ unbzip2()

byte[] com.osroyale.fs.util.CompressionUtil.unbzip2 ( byte[] data) throws IOException
inlinestatic

Uncompresses a byte array of b-zipped data.

Parameters
dataThe compressed, b-zipped data.
Returns
The uncompressed data.
Exceptions
IOExceptionIf some I/O exception occurs.

Definition at line 88 of file CompressionUtil.java.

◆ unbzip2Headerless()

byte[] com.osroyale.fs.util.CompressionUtil.unbzip2Headerless ( byte[] data,
int offset,
int length ) throws IOException
inlinestatic

Uncompresses a byte array of b-zipped data that does not contain a header.

A b-zip header block consists of 2 bytes, they are replaced with 'h' and '1' as that is what our file system compresses the header as.

Parameters
dataThe compressed, b-zipped data.
offsetThe offset position of the data.
lengthThe length of the data.
Returns
The uncompressed data.
Exceptions
IOExceptionIf some I/O exception occurs.

Definition at line 71 of file CompressionUtil.java.


The documentation for this class was generated from the following file: