#include #include #include #include // (24,12) Golay encoder and decoder class Golay_coder { public: static const size_t BLOCK_SIZE = 24; static const size_t INFO_SIZE = 12; Golay_coder(){}; ~Golay_coder(){}; // input size must be 24, output size must be 12 void encode(uint8_t *input, uint8_t *output) { for (size_t generator_col=0; generator_col