#include <blockencoder.h>
Inheritance diagram for simthlib::ReedSolomonEncoder:
Public Member Functions | |
ReedSolomonEncoder (int deviceID, simth::DeviceSystemIntf *system, const simth::PropertyList &pl, int bitsPerSymbol, int numCheckSymbol, int m0_, int input_Length) | |
virtual | ~ReedSolomonEncoder () |
virtual void | Encode (const simth::BitSeq &bsin, simth::BitSeq *bsout) const |
virtual void | updateOutputLengths () |
virtual void | updateInputLengths () |
virtual int | getDataLength (int codedLength) const |
virtual int | getCodeLength (int rawLength) const |
|
|
|
|
|
Encodes the given bit sequence. Implements simthlib::Encoder. |
|
Returns the length of a coded bit sequence which is generated by the coder from a data sequence of the given length. If the data length does not fit (dataLength dataBitsPerStep() != 0) an FitErr exception is thrown, which should be caught in the scope calling the function.
Implements simthlib::Encoder. |
|
If the coded length does fit (codedLength codedBitsPerStep() == 0) the function the function returns the length of a data bit sequence which is encoded by the coder from a coded bit sequence of the given length. In general the function returns the maximal length of a data bit which encoded length is smaller or equal code_length.
Implements simthlib::Encoder. |
|
Reimplemented from simthlib::Encoder. |
|
Reimplemented from simthlib::Encoder. |