java.lang.Object
org.yamcs.mdb.AbstractDataEncoder
org.yamcs.algo.ReverseBinaryEncoder
- All Implemented Interfaces:
AlgorithmExecutor,DataEncoder
A custom data encoder that converts provided binary to encoded binary in the reverse byte order.
-
Constructor Summary
ConstructorsConstructorDescriptionReverseBinaryEncoder(org.yamcs.xtce.CustomAlgorithm alg, AlgorithmExecutionContext ctx) -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeRaw(org.yamcs.xtce.DataEncoding de, Value rawValue, BitBuffer buffer, TcProcessingContext ctx) Encode the raw value into the buffer.Methods inherited from class org.yamcs.mdb.AbstractDataEncoder
execute, getAlgorithm, getExecutionContext, getLookbackSize, getRequiredParameters, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.yamcs.algorithms.AlgorithmExecutor
dispose, getInputList, getOutputList
-
Constructor Details
-
ReverseBinaryEncoder
-
-
Method Details
-
encodeRaw
public void encodeRaw(org.yamcs.xtce.DataEncoding de, Value rawValue, BitBuffer buffer, TcProcessingContext ctx) Description copied from interface:DataEncoderEncode the raw value into the buffer.The offset inside the buffer shall be moved to the end of the parameter
- Parameters:
de- the data encoding definition of which this algorithm is part ofrawValue- raw value to be encodedbuffer- buffer in which the value should be encodedctx- TC processing context
-