Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

rq_encode - encode data with RaptorQ

Description

       This function is used to prepare data for the generation of encoding (original or repair) symbols.

       Calls  to  API  functions  that  generate  symbols, such as rq_symbol(3), rq_symbol_random(3) and must be
       preceded with a call to rq_encode()rq_encode must be called with a pointer to valid rq_t context, rq and a pointer to data to be encoded  of
       length len bytes.

       The object pointed to by data will be used to generate RaptorQ intermediate symbols as per RFC6330. These
       are  referenced  by the rq context, and will be free()d when rq_free(3) is called, along with the context
       itself.

Name

       rq_encode - encode data with RaptorQ

Return Value

       On success, 0 is returned.  If encoding fails, the function returns -1.

See Also

rq_init(3), rq_free(3), rq_decode(3), rq_symbol(3), lcrq(7)

LCRQ                                               2022-07-07                                       RQ_ENCODE(3)

Synopsis

#include<lcrq.h>intrq_encode(rq_t*rq,void*data,constsize_tlen);

       Compile and link with -llcrq.

See Also