|
liberasurecode 1.6.3
Erasure Code API library
|
#include <stdio.h>#include <stdlib.h>#include "erasurecode.h"#include "erasurecode_backend.h"#include "erasurecode_helpers.h"#include "erasurecode_helpers_ext.h"Go to the source code of this file.
Data Structures | |
| struct | liberasurecode_rs_vand_descriptor |
Macros | |
| #define | LIBERASURECODE_RS_VAND_LIB_MAJOR 1 |
| #define | LIBERASURECODE_RS_VAND_LIB_MINOR 0 |
| #define | LIBERASURECODE_RS_VAND_LIB_REV 0 |
| #define | LIBERASURECODE_RS_VAND_LIB_VER_STR "1.0" |
| #define | LIBERASURECODE_RS_VAND_LIB_NAME "liberasurecode_rs_vand" |
| #define | LIBERASURECODE_RS_VAND_SO_NAME "liberasurecode_rs_vand" LIBERASURECODE_SO_SUFFIX ".so.1" |
Typedefs | |
| typedef int(* | liberasurecode_rs_vand_encode_func) (int *, char **, char **, int, int, int) |
| typedef int(* | liberasurecode_rs_vand_decode_func) (int *, char **, char **, int, int, int *, int, int) |
| typedef int(* | liberasurecode_rs_vand_reconstruct_func) (int *, char **, char **, int, int, int *, int, int) |
| typedef void(* | init_liberasurecode_rs_vand_func) (int, int) |
| typedef void(* | deinit_liberasurecode_rs_vand_func) () |
| typedef void(* | free_systematic_matrix_func) (int *) |
| typedef int *(* | make_systematic_matrix_func) (int, int) |
Functions | |
| static int | liberasurecode_rs_vand_encode (void *desc, char **data, char **parity, int blocksize) |
| static int | liberasurecode_rs_vand_decode (void *desc, char **data, char **parity, int *missing_idxs, int blocksize) |
| static int | liberasurecode_rs_vand_reconstruct (void *desc, char **data, char **parity, int *missing_idxs, int destination_idx, int blocksize) |
| static int | liberasurecode_rs_vand_min_fragments (void *desc, int *missing_idxs, int *fragments_to_exclude, int *fragments_needed) |
| static void * | liberasurecode_rs_vand_init (struct ec_backend_args *args, void *backend_sohandle) |
| static int | liberasurecode_rs_vand_element_size (void *desc) |
| Return the element-size, which is the number of bits stored on a given device, per codeword. | |
| static int | liberasurecode_rs_vand_exit (void *desc) |
| static bool | liberasurecode_rs_vand_is_compatible_with (uint32_t version) |
Variables | |
| struct ec_backend_op_stubs | liberasurecode_rs_vand_ops |
| struct ec_backend | liberasurecode_rs_vand |
| struct ec_backend_common | backend_liberasurecode_rs_vand |
| struct ec_backend_op_stubs | liberasurecode_rs_vand_op_stubs |
| #define LIBERASURECODE_RS_VAND_LIB_MAJOR 1 |
Definition at line 35 of file liberasurecode_rs_vand.c.
| #define LIBERASURECODE_RS_VAND_LIB_MINOR 0 |
Definition at line 36 of file liberasurecode_rs_vand.c.
| #define LIBERASURECODE_RS_VAND_LIB_NAME "liberasurecode_rs_vand" |
Definition at line 39 of file liberasurecode_rs_vand.c.
| #define LIBERASURECODE_RS_VAND_LIB_REV 0 |
Definition at line 37 of file liberasurecode_rs_vand.c.
| #define LIBERASURECODE_RS_VAND_LIB_VER_STR "1.0" |
Definition at line 38 of file liberasurecode_rs_vand.c.
| #define LIBERASURECODE_RS_VAND_SO_NAME "liberasurecode_rs_vand" LIBERASURECODE_SO_SUFFIX ".so.1" |
Definition at line 43 of file liberasurecode_rs_vand.c.
| typedef void(* deinit_liberasurecode_rs_vand_func) () |
Definition at line 55 of file liberasurecode_rs_vand.c.
| typedef void(* free_systematic_matrix_func) (int *) |
Definition at line 56 of file liberasurecode_rs_vand.c.
| typedef void(* init_liberasurecode_rs_vand_func) (int, int) |
Definition at line 54 of file liberasurecode_rs_vand.c.
| typedef int(* liberasurecode_rs_vand_decode_func) (int *, char **, char **, int, int, int *, int, int) |
Definition at line 52 of file liberasurecode_rs_vand.c.
| typedef int(* liberasurecode_rs_vand_encode_func) (int *, char **, char **, int, int, int) |
Definition at line 51 of file liberasurecode_rs_vand.c.
| typedef int(* liberasurecode_rs_vand_reconstruct_func) (int *, char **, char **, int, int, int *, int, int) |
Definition at line 53 of file liberasurecode_rs_vand.c.
| typedef int *(* make_systematic_matrix_func) (int, int) |
Definition at line 57 of file liberasurecode_rs_vand.c.
|
static |
Definition at line 95 of file liberasurecode_rs_vand.c.
References liberasurecode_rs_vand_descriptor::k, liberasurecode_rs_vand_descriptor::liberasurecode_rs_vand_decode, liberasurecode_rs_vand_descriptor::m, and liberasurecode_rs_vand_descriptor::matrix.
|
static |
Return the element-size, which is the number of bits stored on a given device, per codeword.
For Vandermonde, this is 'w'. For somthing like cauchy, this is packetsize * w.
Returns the size in bits!
Definition at line 262 of file liberasurecode_rs_vand.c.
References liberasurecode_rs_vand_descriptor::w.
|
static |
Definition at line 83 of file liberasurecode_rs_vand.c.
References liberasurecode_rs_vand_descriptor::k, liberasurecode_rs_vand_descriptor::liberasurecode_rs_vand_encode, liberasurecode_rs_vand_descriptor::m, and liberasurecode_rs_vand_descriptor::matrix.
|
static |
Definition at line 271 of file liberasurecode_rs_vand.c.
References liberasurecode_rs_vand_descriptor::deinit_liberasurecode_rs_vand, liberasurecode_rs_vand_descriptor::free_systematic_matrix, and liberasurecode_rs_vand_descriptor::matrix.
|
static |
Definition at line 148 of file liberasurecode_rs_vand.c.
References liberasurecode_rs_vand_descriptor::deinit_liberasurecode_rs_vand, liberasurecode_rs_vand_descriptor::free_systematic_matrix, liberasurecode_rs_vand_descriptor::init_liberasurecode_rs_vand, liberasurecode_rs_vand_descriptor::k, liberasurecode_rs_vand_descriptor::liberasurecode_rs_vand_decode, liberasurecode_rs_vand_descriptor::liberasurecode_rs_vand_encode, liberasurecode_rs_vand_descriptor::liberasurecode_rs_vand_reconstruct, liberasurecode_rs_vand_descriptor::m, liberasurecode_rs_vand_descriptor::make_systematic_matrix, liberasurecode_rs_vand_descriptor::matrix, and liberasurecode_rs_vand_descriptor::w.
|
static |
Definition at line 288 of file liberasurecode_rs_vand.c.
References backend_liberasurecode_rs_vand.
|
static |
Definition at line 121 of file liberasurecode_rs_vand.c.
References liberasurecode_rs_vand_descriptor::k, and liberasurecode_rs_vand_descriptor::m.
|
static |
| struct ec_backend_common backend_liberasurecode_rs_vand |
Definition at line 49 of file liberasurecode_rs_vand.c.
Referenced by liberasurecode_rs_vand_is_compatible_with().
| struct ec_backend liberasurecode_rs_vand |
Definition at line 48 of file liberasurecode_rs_vand.c.
| struct ec_backend_op_stubs liberasurecode_rs_vand_op_stubs |
Definition at line 292 of file liberasurecode_rs_vand.c.
| struct ec_backend_op_stubs liberasurecode_rs_vand_ops |
Definition at line 47 of file liberasurecode_rs_vand.c.