PlexOfCpspublic class PlexOfCps extends Object common data structure in a Word file. Contains an array of 4 byte ints in
the front that relate to an array of abitrary data structures in the back.
This class acts more like a pointer. In the sense that it doesn't store any
data. It only provides convenience methods for accessing a particular
PlexOfCps |
Fields Summary |
---|
private int | _count | private int | _offset | private int | _sizeOfStruct |
Constructors Summary |
---|
public PlexOfCps(int size, int sizeOfStruct)Constructor
_count = (size - 4)/(4 + sizeOfStruct);
_sizeOfStruct = sizeOfStruct;
|
Methods Summary |
---|
public int | getIntOffset(int index)
return index * 4;
| public int | getStructOffset(int index)Returns the offset, in bytes, from the beginning if this PlexOfCps to
the data structure at index.
return (4 * (_count + 1)) + (_sizeOfStruct * index);
| public int | length()returns the number of data structures in this PlexOfCps.
return _count;
|
|