com.github.junrar.unpack.vm
Class RarVM

java.lang.Object
  extended by com.github.junrar.unpack.vm.BitInput
      extended by com.github.junrar.unpack.vm.RarVM

public class RarVM
extends BitInput

DOCUMENT ME

Version:
$LastChangedRevision$
Author:
$LastChangedBy$

Field Summary
static int VM_FIXEDGLOBALSIZE
           
static int VM_GLOBALMEMADDR
           
static int VM_GLOBALMEMSIZE
           
static int VM_MEMMASK
           
static int VM_MEMSIZE
           
 
Fields inherited from class com.github.junrar.unpack.vm.BitInput
inAddr, inBit, inBuf, MAX_SIZE
 
Constructor Summary
RarVM()
           
 
Method Summary
 void execute(VMPreparedProgram prg)
           
 byte[] getMem()
           
 void init()
           
 void prepare(byte[] code, int codeSize, VMPreparedProgram prg)
           
static int ReadData(BitInput rarVM)
           
 void setLowEndianValue(byte[] mem, int offset, int value)
           
 void setLowEndianValue(Vector<Byte> mem, int offset, int value)
           
 void setMemory(int pos, byte[] data, int offset, int dataSize)
           
 
Methods inherited from class com.github.junrar.unpack.vm.BitInput
addbits, faddbits, fgetbits, getbits, getInBuf, InitBitInput, Overflow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VM_MEMSIZE

public static final int VM_MEMSIZE
See Also:
Constant Field Values

VM_MEMMASK

public static final int VM_MEMMASK
See Also:
Constant Field Values

VM_GLOBALMEMADDR

public static final int VM_GLOBALMEMADDR
See Also:
Constant Field Values

VM_GLOBALMEMSIZE

public static final int VM_GLOBALMEMSIZE
See Also:
Constant Field Values

VM_FIXEDGLOBALSIZE

public static final int VM_FIXEDGLOBALSIZE
See Also:
Constant Field Values
Constructor Detail

RarVM

public RarVM()
Method Detail

init

public void init()

setLowEndianValue

public void setLowEndianValue(byte[] mem,
                              int offset,
                              int value)

setLowEndianValue

public void setLowEndianValue(Vector<Byte> mem,
                              int offset,
                              int value)

execute

public void execute(VMPreparedProgram prg)

getMem

public byte[] getMem()

prepare

public void prepare(byte[] code,
                    int codeSize,
                    VMPreparedProgram prg)

ReadData

public static int ReadData(BitInput rarVM)

setMemory

public void setMemory(int pos,
                      byte[] data,
                      int offset,
                      int dataSize)


Copyright © 2012. All Rights Reserved.