dioscuri.module.cpu32
Class ByteSourceWrappedMemory

java.lang.Object
  extended by dioscuri.module.cpu32.ByteSourceWrappedMemory
All Implemented Interfaces:
ByteSource

public class ByteSourceWrappedMemory
extends java.lang.Object
implements ByteSource

Author:
Bram Lohman, Bart Kiers

Constructor Summary
ByteSourceWrappedMemory()
           
 
Method Summary
 byte getByte()
           
 Memory getMemory()
           
 int getOffset()
           
 boolean reset()
           
 boolean rewind(int count)
           
 void set(Memory source, int offset)
           
 boolean skip(int count)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteSourceWrappedMemory

public ByteSourceWrappedMemory()
Method Detail

set

public void set(Memory source,
                int offset)
Parameters:
source -
offset -

getMemory

public Memory getMemory()
Returns:
-

getOffset

public int getOffset()
Returns:
-

getByte

public byte getByte()
Specified by:
getByte in interface ByteSource
Returns:
-

skip

public boolean skip(int count)
Specified by:
skip in interface ByteSource
Parameters:
count -
Returns:
-

rewind

public boolean rewind(int count)
Specified by:
rewind in interface ByteSource
Parameters:
count -
Returns:
-

reset

public boolean reset()
Specified by:
reset in interface ByteSource
Returns:
-