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

Public Member Functions

void check (int cacheId, int indexId, int chunk)
int getIndexId ()
int getChunk ()
int getNextIndexId ()
int getCacheId ()

Static Public Member Functions

static Sector decode (ByteBuffer buffer, byte[] data, int offset, int length)

Detailed Description

Represents a sector within some Cache.

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

Definition at line 46 of file Sector.java.

Member Function Documentation

◆ check()

void com.osroyale.fs.cache.Sector.check ( int cacheId,
int indexId,
int chunk )
inline

Tests whether or not this sector is valid.

Parameters
cacheIdThe cache id to test.
indexIdThe index id to test.
chunkThe chunk id to test.

Definition at line 103 of file Sector.java.

◆ decode()

Sector com.osroyale.fs.cache.Sector.decode ( ByteBuffer buffer,
byte[] data,
int offset,
int length )
inlinestatic

Decodes a Sector from the specified ByteBuffer.

Parameters
bufferThe ByteBuffer to get the sector from.
dataThe expected data within the sector.
offsetThe expected offset of the sector.
lengthThe expected length of the sector.
Returns
The decoded sector.

Definition at line 87 of file Sector.java.

◆ getCacheId()

int com.osroyale.fs.cache.Sector.getCacheId ( )
inline

Returns the id of the cache this sector is in.

Definition at line 125 of file Sector.java.

◆ getChunk()

int com.osroyale.fs.cache.Sector.getChunk ( )
inline

Returns this sectors chunk.

Definition at line 115 of file Sector.java.

◆ getIndexId()

int com.osroyale.fs.cache.Sector.getIndexId ( )
inline

Returns the id of the index this sector is within.

Definition at line 110 of file Sector.java.

◆ getNextIndexId()

int com.osroyale.fs.cache.Sector.getNextIndexId ( )
inline

Returns the next index within this sector.

Definition at line 120 of file Sector.java.


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