org.yamcs.tctm.RawFrameDecoder Maven / Gradle / Ivy
package org.yamcs.tctm;
/**
*
* Decodes raw frames performing derandomization and error correction.
*
* We assume the all frames are of pre-configured fixed length.
*/
public interface RawFrameDecoder {
/**
* Decodes frame in the buffer at offset. The decoded frame is stored in the same buffer.
*
* Returns the length of the decoded and corrected frame or -1 if the frame could not be decoded
*/
int decodeFrame(byte[] data, int offset, int length);
/**
* Returns the length of the encoded (input) frame or -1 if it can be variable
*
* @return
*/
int encodedFrameLength();
/**
* Returns the length of the decoded frame or -1 if it can be variable
*
* @return
*/
int decodedFrameLength();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy