Package com.github.junrar.unpack.ppm
Class Pointer
- java.lang.Object
-
- com.github.junrar.unpack.ppm.Pointer
-
- Direct Known Subclasses:
FreqData,PPMContext,RarMemBlock,RarNode,State
public abstract class Pointer extends java.lang.ObjectSimulates Pointers on a single mem block as a byte[]- Version:
- $LastChangedRevision$
-
-
Constructor Summary
Constructors Constructor Description Pointer(byte[] mem)Initialize the object with the array (may be null)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAddress()returns the position of this object in the byte[]voidsetAddress(int pos)needs to set the fields of this object to the values in the byte[] at the given position.
-
-
-
Method Detail
-
getAddress
public int getAddress()
returns the position of this object in the byte[]- Returns:
- the address of this object
-
setAddress
public void setAddress(int pos)
needs to set the fields of this object to the values in the byte[] at the given position. be aware of the byte order- Parameters:
pos- the position this object should point to
-
-