| 58 | |
| 59 | template<typename B> |
| 60 | void |
| 61 | Encoder_BCH<B>::_encode(const B* U_K, B* X_N, const size_t /*frame_id*/) |
| 62 | { |
| 63 | // generate the parity bits |
| 64 | this->__encode(U_K, X_N); |
| 65 | |
| 66 | // copy the sys bits at the end of the codeword |
| 67 | std::copy(U_K, U_K + this->K, X_N + n_rdncy); |
| 68 | } |
| 69 | |
| 70 | template<typename B> |
| 71 | bool |