RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.fs.cache.archive.ArchiveSector Class Reference

Represents a sector within an Archive. More...

Public Member Functions

ByteBuffer getData ()
 Returns the data within this sector.
int getHash ()
 Returns the hashed name of this sector.

Protected Member Functions

 ArchiveSector (ByteBuffer data, int hash)
 Constructs a new ArchiveSector with the specified data and hashed name.

Private Attributes

final ByteBuffer data
 The data within this sector.
final int hash
 The hashed name of this sector.

Detailed Description

Represents a sector within an Archive.

A archive sector contains a hashed name and compressed data, this data represents files and information within the FileSystem.

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

Definition at line 14 of file ArchiveSector.java.

Constructor & Destructor Documentation

◆ ArchiveSector()

com.runehive.fs.cache.archive.ArchiveSector.ArchiveSector ( ByteBuffer data,
int hash )
protected

Constructs a new ArchiveSector with the specified data and hashed name.

Parameters
dataThe data within this sector.
hashThe hashed name of this sector.

Definition at line 29 of file ArchiveSector.java.

29 {
30 this.data = data;
31 this.hash = hash;
32 }

References data, and hash.

Member Function Documentation

◆ getData()

ByteBuffer com.runehive.fs.cache.archive.ArchiveSector.getData ( )

Returns the data within this sector.

Definition at line 35 of file ArchiveSector.java.

35 {
36 return data;
37 }

References data.

Referenced by com.runehive.fs.cache.archive.Archive.getData().

Here is the caller graph for this function:

◆ getHash()

int com.runehive.fs.cache.archive.ArchiveSector.getHash ( )

Returns the hashed name of this sector.

Definition at line 40 of file ArchiveSector.java.

40 {
41 return hash;
42 }

References hash.

Member Data Documentation

◆ data

final ByteBuffer com.runehive.fs.cache.archive.ArchiveSector.data
private

The data within this sector.

Definition at line 17 of file ArchiveSector.java.

Referenced by ArchiveSector(), and getData().

◆ hash

final int com.runehive.fs.cache.archive.ArchiveSector.hash
private

The hashed name of this sector.

Definition at line 20 of file ArchiveSector.java.

Referenced by ArchiveSector(), and getHash().


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