com.github.junrar.unpack.vm
Class BitInput

java.lang.Object
  extended by com.github.junrar.unpack.vm.BitInput
Direct Known Subclasses:
RarVM, Unpack15

public class BitInput
extends Object

DOCUMENT ME

Version:
$LastChangedRevision$
Author:
$LastChangedBy$

Field Summary
protected  int inAddr
           
protected  int inBit
           
protected  byte[] inBuf
           
static int MAX_SIZE
          the max size of the input
 
Constructor Summary
BitInput()
           
 
Method Summary
 void addbits(int Bits)
           
 void faddbits(int Bits)
           
 int fgetbits()
           
 int getbits()
           
 byte[] getInBuf()
           
 void InitBitInput()
           
 boolean Overflow(int IncPtr)
          Indicates an Overfow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_SIZE

public static final int MAX_SIZE
the max size of the input

See Also:
Constant Field Values

inAddr

protected int inAddr

inBit

protected int inBit

inBuf

protected byte[] inBuf
Constructor Detail

BitInput

public BitInput()
Method Detail

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()


Copyright © 2012. All Rights Reserved.