#ifndef SHIM_RUST_CALLBACKS_INDEX_RANGE_HPP
#define SHIM_RUST_CALLBACKS_INDEX_RANGE_HPP
#include <cstddef>
#include <cstdint>
extern "C" {
int32_t rust__handler__index_read(void *ctx, uint8_t *buf, size_t buf_len,
const uint8_t *key, size_t key_len,
int32_t find_flag);
int32_t rust__handler__index_read_idx_map(void *ctx, uint8_t *buf,
size_t buf_len, uint32_t index,
const uint8_t *key, size_t key_len,
int32_t find_flag);
int32_t rust__handler__index_read_last(void *ctx, uint8_t *buf, size_t buf_len,
const uint8_t *key, size_t key_len);
int32_t rust__handler__index_read_last_map(void *ctx, uint8_t *buf,
size_t buf_len, const uint8_t *key,
size_t key_len);
int32_t rust__handler__read_range_first(void *ctx, uint8_t *buf, size_t buf_len,
const uint8_t *start_key,
size_t start_len, int32_t start_flag,
const uint8_t *end_key, size_t end_len,
int32_t end_flag, bool eq_range,
bool sorted);
int32_t rust__handler__read_range_next(void *ctx, uint8_t *buf, size_t buf_len);
uint64_t rust__handler__records_in_range(void *ctx, uint32_t inx,
const uint8_t *min_key, size_t min_len,
int32_t min_flag,
const uint8_t *max_key, size_t max_len,
int32_t max_flag);
}
#endif