}
static char Encoder__doc__[] = "\
-Hold static encoder state (an in-memory table for matrix multiplication), and k and m parameters, and provide {encode()} method.\n\
+Hold static encoder state (an in-memory table for matrix multiplication), and k and m parameters, and provide {encode()} method.\n\n\
+@param k: the number of packets required for reconstruction \n\
+@param m: the number of packets generated \n\
";
typedef struct {
return (PyObject *)self;
}
-static char Encoder_init__doc__[] = "\
-@param k: the number of packets required for reconstruction \n\
-@param m: the number of packets generated \n\
-";
-
static int
Encoder_init(Encoder *self, PyObject *args, PyObject *kwdict) {
static char *kwlist[] = {
};
static char Decoder__doc__[] = "\
-Hold static decoder state (an in-memory table for matrix multiplication), and k and m parameters, and provide {decode()} method.\n\
+Hold static decoder state (an in-memory table for matrix multiplication), and k and m parameters, and provide {decode()} method.\n\n\
+@param k: the number of packets required for reconstruction \n\
+@param m: the number of packets generated \n\
";
typedef struct {
return (PyObject *)self;
}
-static char Decoder_init__doc__[] = "\
-@param k: the number of packets required for reconstruction \n\
-@param m: the number of packets generated \n\
-";
-
static int
Decoder_init(Encoder *self, PyObject *args, PyObject *kwdict) {
static char *kwlist[] = {
unsigned i;
for (i=0; i<self->kk; i++)
recoveredpystrs[i] = NULL;
+ PyObject*restrict fastshareids = NULL;
PyObject*restrict fastshares = PySequence_Fast(shares, "First argument was not a sequence.");
if (!fastshares)
goto err;
- PyObject*restrict fastshareids = PySequence_Fast(shareids, "Second argument was not a sequence.");
+ fastshareids = PySequence_Fast(shareids, "Second argument was not a sequence.");
if (!fastshareids)
goto err;