|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrossi.fstools.fs.reiserfs.ItemHead
Representation of a ItemHead.
Item Head is an intrablock pointer to an item.
31 24 16 8 0
--------------------------------------
0000 | Key |
--------------------------------------
0004 | Key |
--------------------------------------
0008 | Key |
--------------------------------------
000C | Key |
--------------------------------------
0010 | Free/EntCount | Item Length |
--------------------------------------
0014 | Item Location | Item Version |
--------------------------------------
| Field Summary | |
protected int |
freeEntCt
|
protected int |
itemLen
|
protected int |
itemLocation
|
protected int |
itemVersion
|
protected Key |
key
|
| Constructor Summary | |
ItemHead()
|
|
| Method Summary | |
int |
getDataSize()
Get the size in bytes of the structure. |
int |
getFreeEntCt()
Get the number of entries if this is a DirectoryItem, or the free space if this is a indirect item. |
int |
getItemLen()
Get the length of this Item in bytes. |
int |
getItemLocation()
Location of the item within this block. |
int |
getItemVersion()
Indicates the item version. |
Key |
getKey()
Get the Key of the item. |
void |
loadFromBuffer(byte[] buffer,
int blkoffset)
Loads the object from a memory buffer |
void |
setFreeEntCt(int aFreeEntCt)
|
void |
setItemLen(int aItemLen)
|
void |
setItemLocation(int aItemLocation)
|
void |
setItemVersion(int aItemVersion)
|
void |
setKey(Key aKey)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Key key
protected int freeEntCt
protected int itemLen
protected int itemLocation
protected int itemVersion
| Constructor Detail |
public ItemHead()
| Method Detail |
public int getDataSize()
DiskStructure
getDataSize in interface DiskStructurepublic Key getKey()
public void setKey(Key aKey)
public int getFreeEntCt()
public void setFreeEntCt(int aFreeEntCt)
public int getItemLen()
public void setItemLen(int aItemLen)
public int getItemLocation()
public void setItemLocation(int aItemLocation)
public int getItemVersion()
0 for old items, 2 for new items.
public void setItemVersion(int aItemVersion)
public void loadFromBuffer(byte[] buffer,
int blkoffset)
throws FsException
DiskStructure
loadFromBuffer in interface DiskStructurebuffer - a byte[] containing data to be read in populating the objectblkoffset - a int indicating the offset within the buffer to start parsing.
FsException - if a parse error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||