libCATS
|
LDPC encoding and decoding. More...
#include <stdint.h>
#include <stddef.h>
Go to the source code of this file.
Functions | |
size_t | cats_ldpc_encode (uint8_t *data, size_t len) |
LDPC encode a buffer of data. | |
size_t | cats_ldpc_decode (uint8_t *buf, size_t buf_len) |
LDPC decode a buffer of data. | |
LDPC encoding and decoding.
size_t cats_ldpc_decode | ( | uint8_t * | buf, |
size_t | buf_len ) |
LDPC decode a buffer of data.
buf | Input and output buffer |
buf_len | Input length |
CATS_FAIL
if decode failed size_t cats_ldpc_encode | ( | uint8_t * | data, |
size_t | len ) |
LDPC encode a buffer of data.
data | Input and output buffer |
len | Input length |
data
buffer must have enough room to accomodate the encoded data (about 2x the input length)