#ifndef __LIB__ELSEWHERE_H__
#define __LIB__ELSEWHERE_H__

#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>

struct elsewhere_range {
    uint64_t elsewhere;
    uint64_t target;
    uint64_t length;
};

bool elsewhere_append(
        bool flexible_target,
        struct elsewhere_range *ranges, uint64_t *ranges_count,
        void *elsewhere, uint64_t *target, size_t t_length);

#endif
