public abstract class BINTOx extends NamedWarpScriptFunction implements WarpScriptStackFunction
| Constructor and Description |
|---|
BINTOx(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
apply(WarpScriptStack stack) |
abstract java.lang.Object |
generateResult(java.lang.Object data)
Generate the final result given data structure, updated for each byte.
|
abstract java.lang.Object |
initData(int numberOfBits)
Initialize the data structure which will be updated for each decoded byte.
|
abstract void |
updateData(java.lang.Object data,
int byteIndex,
byte currentByte)
Update the data structure for a given byte at given byte index.
|
getName, refSnapshot, setName, toStringpublic java.lang.Object apply(WarpScriptStack stack) throws WarpScriptException
apply in interface WarpScriptStackFunctionWarpScriptExceptionpublic abstract java.lang.Object initData(int numberOfBits)
numberOfBits - The number of bits in the binary representation which is always a multiple of 8.public abstract void updateData(java.lang.Object data,
int byteIndex,
byte currentByte)
data - The data structure to be updated.byteIndex - The index of the byte to update.currentByte - The value of the decoded byte.public abstract java.lang.Object generateResult(java.lang.Object data)
data - The initialized and updated data structure.