Add function to set EC based on recoverability percentage.

This commit is contained in:
2026-04-11 22:11:56 +01:00
parent ea28c65aa2
commit edc65f6b1c
2 changed files with 49 additions and 0 deletions

View File

@@ -294,5 +294,6 @@ AARU_EXPORT TARGET_WITH_SIMD uint64_t AARU_CALL aaruf_crc64_vmull(uint64_t previ
/* Erasure coding */
AARU_EXPORT int32_t AARU_CALL aaruf_set_erasure_coding(void *context, uint8_t algorithm, uint16_t K, uint16_t M);
AARU_EXPORT int32_t AARU_CALL aaruf_set_erasure_coding_auto(void *context, double recovery_fraction);
#endif // LIBAARUFORMAT_DECLS_H