|
RuneHive-Game
|
An Index points to a file in the main_file_cache.dat file.
More...
Public Member Functions | |
| int | getBlock () |
| Gets the first block of the file. | |
| int | getSize () |
| Gets the size of the file. | |
| Index (int size, int block) | |
| Creates the index. | |
Static Public Member Functions | |
| static Index | decode (byte[] buffer) |
| Decodes a buffer into an index. | |
Private Attributes | |
| final int | block |
| The first block of the file. | |
| final int | size |
| The size of the file. | |
An Index points to a file in the main_file_cache.dat file.
Definition at line 7 of file Index.java.
| dev.advo.fs.fs.Index.Index | ( | int | size, |
| int | block ) |
Creates the index.
| size | The size of the file. |
| block | The first block of the file. |
Definition at line 41 of file Index.java.
Referenced by decode().
|
static |
Decodes a buffer into an index.
| buffer | The buffer. |
Index. | IllegalArgumentException | if the buffer length is invalid. |
Definition at line 15 of file Index.java.
References block, Index(), dev.advo.fs.fs.FileSystemConstants.INDEX_SIZE, and size.
Referenced by dev.advo.fs.fs.IndexedFileSystem.getIndex().
| int dev.advo.fs.fs.Index.getBlock | ( | ) |
Gets the first block of the file.
Definition at line 58 of file Index.java.
References block.
| int dev.advo.fs.fs.Index.getSize | ( | ) |
Gets the size of the file.
Definition at line 50 of file Index.java.
References size.
|
private |
The first block of the file.
Definition at line 34 of file Index.java.
Referenced by decode(), getBlock(), and Index().
|
private |
The size of the file.
Definition at line 29 of file Index.java.