|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrossi.fstools.fs.reiserfs.Item
rossi.fstools.fs.reiserfs.IndirectItem
Representation of an indirect item.
An indirect item is an array of 32 bit block pointers. The number of pointers is given by itemLength/4
| Field Summary | |
protected int[] |
ptrs
|
| Fields inherited from class rossi.fstools.fs.reiserfs.Item |
block, buffer, bufferOffset, header |
| Constructor Summary | |
IndirectItem(byte[] buffer,
int bufferOffset,
LeafNode block,
ItemHead header)
Create an indirect item from the supplied buffer. |
|
| Method Summary | |
int[] |
getEntries()
Get the entries (pointers to blocks) contained within this item. |
protected void |
load()
Load the block pointer array from the buffer. |
int |
numEntries()
Get the number of entries (pointers to blocks) contained within this item. |
| Methods inherited from class rossi.fstools.fs.reiserfs.Item |
getBlock, getBlockPointer, getBuffer, getBufferOffset, getHeader, getRawData, setBlock, setBuffer, setBufferOffset, setHeader |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int[] ptrs
| Constructor Detail |
public IndirectItem(byte[] buffer,
int bufferOffset,
LeafNode block,
ItemHead header)
throws FsException
buffer - the buffer to load data from.bufferOffset - offset within the buffer that data starts atblock - leaf block containing this item.header - Item header for this item.| Method Detail |
public int numEntries()
public int[] getEntries()
protected void load()
throws FsException
FsException - if a pase error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||