RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
com.osroyale.fs.cache.archive.Archive Class Reference

Public Member Functions

ByteBuffer getData (String name)

Static Public Member Functions

static Archive decode (ByteBuffer data) throws IOException

Detailed Description

Represents an archive within the Cache.

An archive contains varied amounts of ArchiveSectors which contain compressed file system data.

Author
Ryley Kimmel ryley.nosp@m..kim.nosp@m.mel@l.nosp@m.ive..nosp@m.com

Definition at line 59 of file Archive.java.

Member Function Documentation

◆ decode()

Archive com.osroyale.fs.cache.archive.Archive.decode ( ByteBuffer data) throws IOException
inlinestatic

Decodes the data within this Archive.

Parameters
dataThe encoded data within this archive.
Returns
Returns an Archive with the decoded data, never
null
.
Exceptions
IOExceptionIf some I/O exception occurs.

Definition at line 82 of file Archive.java.

◆ getData()

ByteBuffer com.osroyale.fs.cache.archive.Archive.getData ( String name)
inline

Returns the data within the ArchiveSector for the specified String name.

Parameters
nameThe name of the ArchiveSector.
Returns
The data within the ArchiveSector or nothing, this method fails-fast if no ArchiveSector exists for the specified
name
.

Definition at line 147 of file Archive.java.


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