public interface RoverCodec
Copyright 2008 Partner Software, Inc.
| Modifier and Type | Method and Description |
|---|---|
void |
execute(DynamicByteArray bytecode,
RoverMachineRegister register,
RoverMachineActor actor)
Execute the given bytecode with a RoverMachine, storing data in the given register and sending events to the given actor.
|
RoverBlock |
readBlock(DynamicByteArray bytes)
Read a block from the given byte array.
|
void |
writeBlock(RoverBlock block,
DynamicByteArray bytes)
Write a block to the given byte array.
|
RoverBlock readBlock(DynamicByteArray bytes) throws RoverFormatException
bytes - encoded rover bytesRoverFormatExceptionvoid writeBlock(RoverBlock block, DynamicByteArray bytes) throws RoverFormatException
bytes - encoded rover bytesRoverFormatExceptionvoid execute(DynamicByteArray bytecode, RoverMachineRegister register, RoverMachineActor actor) throws java.io.IOException
This method should be as fast as possible. Avoid allocations, external calls, or anything else that will compromise performance. Comment out log statements rather than testing for log.isDebugEnabled(). Etc.
java.io.IOException