summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTushar Gohad <tushar.gohad@intel.com>2014-07-20 16:59:21 -0700
committerTushar Gohad <tushar.gohad@intel.com>2014-07-21 01:14:56 -0700
commit4de83981d33ec120e4ba1fcd7190256f353c12a3 (patch)
treeed293f2133ee5bd5d59a8684d9162c4ab830bf24 /include
parentaf4279dfb20237bd21159927a8037d7e25898a22 (diff)
downloadliberasurecode-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.h5
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);