|
ByteBuffer | get (final int indexId) throws IOException |
|
| Cache (SeekableByteChannel sectorChannel, SeekableByteChannel indexChannel, int id) |
◆ Cache()
com.osroyale.fs.cache.Cache.Cache |
( |
SeekableByteChannel | sectorChannel, |
|
|
SeekableByteChannel | indexChannel, |
|
|
int | id ) |
|
inlineprotected |
Constructs a new Cache
with the specified sector and index channels and id.
- Parameters
-
sectorChannel | The cache sectors byte channel. |
indexChannel | The cache sectors index channel. |
id | This caches id. |
Definition at line 95 of file Cache.java.
◆ get()
ByteBuffer com.osroyale.fs.cache.Cache.get |
( |
final int | indexId | ) |
throws IOException |
|
inline |
Gets a ByteBuffer
of data within this cache for the specified index id.
- Parameters
-
indexId | The file id to get. |
- Returns
- A wrapped byte buffer of the specified files data, never
null
.
- Exceptions
-
IOException | If some I/O exception occurs. |
Definition at line 109 of file Cache.java.
◆ INDEX_SIZE
final int com.osroyale.fs.cache.Cache.INDEX_SIZE = 6 |
|
static |
Represents the size of a index file. Calculating the total size of a index file. the total size may be that of a long
.
Definition at line 48 of file Cache.java.
◆ SECTOR_HEADER_SIZE
final int com.osroyale.fs.cache.Cache.SECTOR_HEADER_SIZE = 8 |
|
static |
Represents the size of a Sector
s header. Calculating the total size of the sector header. the total size may be that of a long
.
Definition at line 54 of file Cache.java.
◆ SECTOR_SIZE
final int com.osroyale.fs.cache.Cache.SECTOR_SIZE = 520 |
|
static |
Represents the size of a Sector
s header. Calculating the total size of the sector header. the total size may be that of a long
Definition at line 60 of file Cache.java.
The documentation for this class was generated from the following file: