Class ReverseBinaryDecoder

java.lang.Object
org.yamcs.mdb.AbstractDataDecoder
org.yamcs.algo.ReverseBinaryDecoder
All Implemented Interfaces:
AlgorithmExecutor, DataDecoder

public class ReverseBinaryDecoder extends AbstractDataDecoder
A custom data decoder that returns a binary value that has all the bytes reversed from the encoded binary.

This is intended to be used with a custom transformation for the BinaryDataEncoding of a binary parameter.

The implementation assumes a fixed-size encoding.

  • Constructor Details

  • Method Details

    • extractRaw

      public Value extractRaw(org.yamcs.xtce.DataEncoding de, ContainerProcessingContext pcontext, BitBuffer buffer)
      Description copied from interface: DataDecoder
      Extracts the raw value from the buffer. The offset inside the buffer shall be moved to the end of the parameter