|
liberasurecode 1.6.3
Erasure Code API library
|
#include <stdio.h>#include <stdlib.h>#include "erasurecode.h"#include "erasurecode_backend.h"Go to the source code of this file.
Data Structures | |
| struct | null_descriptor |
Macros | |
| #define | NULL_LIB_MAJOR 1 |
| #define | NULL_LIB_MINOR 0 |
| #define | NULL_LIB_REV 0 |
| #define | NULL_LIB_VER_STR "1.0" |
| #define | NULL_LIB_NAME "null" |
| #define | NULL_SO_NAME "libnullcode" LIBERASURECODE_SO_SUFFIX ".so.1" |
| #define | DEFAULT_W 32 |
Typedefs | |
| typedef void *(* | init_null_code_func) (int, int, int) |
| typedef int(* | null_code_encode_func) (void *, char **, char **, int) |
| typedef int(* | null_code_decode_func) (void *, char **, char **, int *, int, int) |
| typedef int(* | null_reconstruct_func) (char **, int, uint64_t, int, char *) |
| typedef int(* | null_code_fragments_needed_func) (void *, int *, int *, int *) |
Functions | |
| static int | null_encode (void *desc, char **data, char **parity, int blocksize) |
| static int | null_decode (void *desc, char **data, char **parity, int *missing_idxs, int blocksize) |
| static int | null_reconstruct (void *desc, char **data, char **parity, int *missing_idxs, int destination_idx, int blocksize) |
| static int | null_min_fragments (void *desc, int *missing_idxs, int *fragments_to_exclude, int *fragments_needed) |
| static int | null_element_size (void *desc) |
| Return the element-size, which is the number of bits stored on a given device, per codeword. | |
| static void * | null_init (struct ec_backend_args *args, void *backend_sohandle) |
| static int | null_exit (void *desc) |
| static bool | null_is_compatible_with (uint32_t version) |
Variables | |
| struct ec_backend | null |
| struct ec_backend_op_stubs | null_ops |
| struct ec_backend_op_stubs | null_op_stubs |
| struct ec_backend_common | backend_null |
| #define NULL_SO_NAME "libnullcode" LIBERASURECODE_SO_SUFFIX ".so.1" |
| typedef int(* null_code_decode_func) (void *, char **, char **, int *, int, int) |
| typedef int(* null_code_encode_func) (void *, char **, char **, int) |
| typedef int(* null_code_fragments_needed_func) (void *, int *, int *, int *) |
| typedef int(* null_reconstruct_func) (char **, int, uint64_t, int, char *) |
|
static |
|
static |
|
static |
|
static |
Definition at line 112 of file null.c.
References null_descriptor::arg1, DEFAULT_W, null_descriptor::init_null_code, null_descriptor::k, null_descriptor::m, null_descriptor::null_code_decode, null_descriptor::null_code_encode, null_descriptor::null_code_fragments_needed, null_descriptor::null_reconstruct, and null_descriptor::w.
|
static |
|
static |
| struct ec_backend_common backend_null |
| struct ec_backend_op_stubs null_op_stubs |