MCPcopy Create free account
hub / github.com/aff3ct/aff3ct / _encode

Method _encode

src/Module/Encoder/RS/Encoder_RS.cpp:78–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76
77template<typename B>
78void
79Encoder_RS<B>::_encode(const B* U_K, B* X_N, const size_t /*frame_id*/)
80{
81 spu::tools::Bit_packer::pack(U_K, this->packed_U_K.data(), this->K, 1, false, this->m);
82
83 // generate the parity bits
84 this->__encode(this->packed_U_K.data(), this->bb.data());
85
86 spu::tools::Bit_packer::unpack(this->bb.data(), X_N, this->n_rdncy_bits, 1, false, this->m);
87
88 // copy the sys bits at the end of the codeword
89 std::copy(U_K, U_K + this->K, X_N + this->n_rdncy_bits);
90}
91
92template<typename B>
93bool

Callers

nothing calls this directly

Calls 1

__encodeMethod · 0.95

Tested by

no test coverage detected