public class RoverCodecV448 extends java.lang.Object implements RoverCodec
| Constructor and Description |
|---|
RoverCodecV448() |
RoverCodecV448(XyBounds bounds) |
RoverCodecV448(XyBounds bounds,
int precision) |
| 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.
|
public RoverCodecV448()
public RoverCodecV448(XyBounds bounds)
public RoverCodecV448(XyBounds bounds, int precision)
public RoverBlock readBlock(DynamicByteArray bytes) throws RoverFormatException
RoverCodecreadBlock in interface RoverCodecbytes - encoded rover bytesRoverFormatExceptionpublic void writeBlock(RoverBlock block, DynamicByteArray bytes) throws RoverFormatException
RoverCodecwriteBlock in interface RoverCodecbytes - encoded rover bytesRoverFormatExceptionpublic void execute(DynamicByteArray bytecode, RoverMachineRegister register, RoverMachineActor actor) throws java.io.IOException
RoverCodecThis 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.
execute in interface RoverCodecjava.io.IOException