|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrossi.fstools.fs.reiserfs.DiskChild
Representation of a DiskChild. DiskChild is an block-to-block pointer stored within InternalNode of the B+Tree in ReiserFS.
31 24 16 8 0
--------------------------------------
0000 | Block Number |
--------------------------------------
0004 | Size | Reserved |
--------------------------------------
| Field Summary | |
protected long |
blockNumber
|
protected int |
childSize
|
protected int |
reserved
|
| Constructor Summary | |
DiskChild()
|
|
| Method Summary | |
long |
getBlockNumber()
Get the block number of the child block that we are pointing to. |
int |
getChildSize()
Get the number of bytes used within the child block. |
int |
getDataSize()
Get the size of this structure. |
int |
getReserved()
|
void |
loadFromBuffer(byte[] buffer,
int blkoffset)
Load this structure from disk. |
void |
setBlockNumber(long aBlockNumber)
|
void |
setChildSize(int aChildSize)
|
void |
setReserved(int aReserved)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected long blockNumber
protected int childSize
protected int reserved
| Constructor Detail |
public DiskChild()
| Method Detail |
public int getDataSize()
getDataSize in interface DiskStructureDiskStructure.getDataSize()public long getBlockNumber()
public void setBlockNumber(long aBlockNumber)
public int getChildSize()
public void setChildSize(int aChildSize)
public int getReserved()
public void setReserved(int aReserved)
public void loadFromBuffer(byte[] buffer,
int blkoffset)
throws FsException
loadFromBuffer in interface DiskStructureblkoffset - offset within buffer where data begins.buffer - a byte[] containing data to be read in populating the object
FsException - if a parse error occursDiskStructure.loadFromBuffer(byte[], int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||