#include "binding.hpp"
#include "rust_callbacks.hpp"
uint RustHandlerBase::max_supported_record_length() const {
if (rust_ctx_) {
uint32_t v = 0;
if (rust__handler__max_supported_record_length(rust_ctx_, &v)) return v;
}
return handler::max_supported_record_length();
}
uint RustHandlerBase::max_supported_keys() const {
if (rust_ctx_) {
uint32_t v = 0;
if (rust__handler__max_supported_keys(rust_ctx_, &v)) return v;
}
return handler::max_supported_keys();
}
uint RustHandlerBase::max_supported_key_parts() const {
if (rust_ctx_) {
uint32_t v = 0;
if (rust__handler__max_supported_key_parts(rust_ctx_, &v)) return v;
}
return handler::max_supported_key_parts();
}
uint RustHandlerBase::max_supported_key_length() const {
if (rust_ctx_) {
uint32_t v = 0;
if (rust__handler__max_supported_key_length(rust_ctx_, &v)) return v;
}
return handler::max_supported_key_length();
}
uint RustHandlerBase::max_supported_key_part_length(
HA_CREATE_INFO *create_info) const {
if (rust_ctx_) {
uint32_t v = 0;
if (rust__handler__max_supported_key_part_length(
rust_ctx_, static_cast<const void *>(create_info), &v))
return v;
}
return handler::max_supported_key_part_length(create_info);
}
uint RustHandlerBase::min_record_length(uint options) const {
if (rust_ctx_) {
uint32_t v = 0;
if (rust__handler__min_record_length(rust_ctx_, options, &v)) return v;
}
return handler::min_record_length(options);
}
uint RustHandlerBase::extra_rec_buf_length() const {
if (rust_ctx_) {
uint32_t v = 0;
if (rust__handler__extra_rec_buf_length(rust_ctx_, &v)) return v;
}
return handler::extra_rec_buf_length();
}
longlong RustHandlerBase::get_memory_buffer_size() const {
if (rust_ctx_) {
int64_t v = 0;
if (rust__handler__memory_buffer_size(rust_ctx_, &v)) return v;
}
return handler::get_memory_buffer_size();
}