|
static Sector | decode (ByteBuffer buffer, byte[] data, int offset, int length) |
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.
◆ check()
void com.osroyale.fs.cache.Sector.check |
( |
int | cacheId, |
|
|
int | indexId, |
|
|
int | chunk ) |
|
inline |
Tests whether or not this sector is valid.
- Parameters
-
cacheId | The cache id to test. |
indexId | The index id to test. |
chunk | The 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
-
buffer | The ByteBuffer to get the sector from. |
data | The expected data within the sector. |
offset | The expected offset of the sector. |
length | The 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: