diff options
author | Tushar Gohad <tushar.gohad@intel.com> | 2014-07-20 16:59:21 -0700 |
---|---|---|
committer | Tushar Gohad <tushar.gohad@intel.com> | 2014-07-21 01:14:56 -0700 |
commit | 4de83981d33ec120e4ba1fcd7190256f353c12a3 (patch) | |
tree | ed293f2133ee5bd5d59a8684d9162c4ab830bf24 /include | |
parent | af4279dfb20237bd21159927a8037d7e25898a22 (diff) | |
download | liberasurecode-4de83981d33ec120e4ba1fcd7190256f353c12a3.tar.gz |
API to get total fragment size
Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/erasurecode/erasurecode_helpers.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/erasurecode/erasurecode_helpers.h b/include/erasurecode/erasurecode_helpers.h index 39a869f..8596da7 100644 --- a/include/erasurecode/erasurecode_helpers.h +++ b/include/erasurecode/erasurecode_helpers.h @@ -147,10 +147,11 @@ int get_aligned_data_size(ec_backend_t instance, int data_len); char *get_data_ptr_from_fragment(char *buf); char *get_fragment_ptr_from_data_novalidate(char *buf); char *get_fragment_ptr_from_data(char *buf); +uint64_t get_fragment_size(char *buf); int set_fragment_idx(char *buf, int idx); int get_fragment_idx(char *buf); -int set_fragment_size(char *buf, int size); -int get_fragment_size(char *buf); +int set_fragment_payload_size(char *buf, int size); +int get_fragment_payload_size(char *buf); int set_orig_data_size(char *buf, int orig_data_size); int get_orig_data_size(char *buf); int validate_fragment(char *buf); |