Class BitInput
java.lang.Object
com.github.junrar.unpack.vm.BitInput
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MAX_SIZE
public static final int MAX_SIZEthe max size of the input- See Also:
-
inAddr
protected int inAddr -
inBit
protected int inBit -
inBuf
protected byte[] inBuf
-
-
Constructor Details
-
BitInput
public BitInput()
-
-
Method Details
-
InitBitInput
public void InitBitInput() -
addbits
public void addbits(int Bits) - Parameters:
Bits- .
-
getbits
public int getbits()- Returns:
- the bits (unsigned short)
-
faddbits
public void faddbits(int Bits) - Parameters:
Bits- add the bits
-
fgetbits
public int fgetbits()- Returns:
- get the bits
-
Overflow
public boolean Overflow(int IncPtr) Indicates an Overfow- Parameters:
IncPtr- how many bytes to inc- Returns:
- true if an Oververflow would occur
-
getInBuf
public byte[] getInBuf()
-