RuneHive-Game
Loading...
Searching...
No Matches
FileSystemConstants.java
Go to the documentation of this file.
1package dev.advo.fs.fs;
2
3/**
4 * Holds file system related constants.
5 * @author Graham
6 */
7public final class FileSystemConstants {
8
9 /**
10 * The number of caches.
11 */
12 public static final int CACHE_COUNT = 5;
13
14 /**
15 * The number of archives in cache 0.
16 */
17 public static final int ARCHIVE_COUNT = 9;
18
19 /**
20 * The size of an index.
21 */
22 public static final int INDEX_SIZE = 6;
23
24 /**
25 * The size of a header.
26 */
27 public static final int HEADER_SIZE = 8;
28
29 /**
30 * The size of a chunk.
31 */
32 public static final int CHUNK_SIZE = 512;
33
34 /**
35 * The size of a block.
36 */
37 public static final int BLOCK_SIZE = HEADER_SIZE + CHUNK_SIZE;
38
39 /**
40 * Default private constructor to prevent instantiation.
41 */
43
44 }
45
46}
static final int CHUNK_SIZE
The size of a chunk.
static final int HEADER_SIZE
The size of a header.
FileSystemConstants()
Default private constructor to prevent instantiation.
static final int BLOCK_SIZE
The size of a block.
static final int INDEX_SIZE
The size of an index.
static final int ARCHIVE_COUNT
The number of archives in cache 0.
static final int CACHE_COUNT
The number of caches.