Class BitMaskBooleanDecoder

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

public class BitMaskBooleanDecoder extends AbstractDataDecoder
Decoder that returns a boolean true if the read bytes has all bits set of the provided bit mask.
  • Constructor Details

    • BitMaskBooleanDecoder

      public BitMaskBooleanDecoder(org.yamcs.xtce.CustomAlgorithm alg, AlgorithmExecutionContext ctx, byte mask)
    • BitMaskBooleanDecoder

      public BitMaskBooleanDecoder(org.yamcs.xtce.CustomAlgorithm alg, AlgorithmExecutionContext ctx, short mask)
    • BitMaskBooleanDecoder

      public BitMaskBooleanDecoder(org.yamcs.xtce.CustomAlgorithm alg, AlgorithmExecutionContext ctx, int mask)
    • BitMaskBooleanDecoder

      public BitMaskBooleanDecoder(org.yamcs.xtce.CustomAlgorithm alg, AlgorithmExecutionContext ctx, long mask)
  • 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