Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
kv_config.hpp
Go to the documentation of this file.
1#pragma once
2
4#include <cstdint>
5
6namespace sysio { namespace chain {
7
16 std::uint32_t max_key_size = 0;
17 std::uint32_t max_value_size = 0;
18 std::uint32_t max_iterators = 0;
19 };
20 inline bool operator==(const kv_database_config& lhs, const kv_database_config& rhs) {
21 return std::tie(lhs.max_key_size, lhs.max_value_size, lhs.max_iterators)
22 == std::tie(rhs.max_key_size, rhs.max_value_size, rhs.max_iterators);
23 }
24 inline bool operator!=(const kv_database_config& lhs, const kv_database_config& rhs) {
25 return !(lhs == rhs);
26 }
27}}
28
29FC_REFLECT(sysio::chain::kv_database_config, (max_key_size)(max_value_size)(max_iterators))
30
bool operator==(const permission_level &lhs, const permission_level &rhs)
Definition action.hpp:13
bool operator!=(const permission_level &lhs, const permission_level &rhs)
Definition action.hpp:17
#define max_key_size
Definition pkcs11.h:170
#define FC_REFLECT(TYPE, MEMBERS)
Specializes fc::reflector for TYPE.
Definition reflect.hpp:311
limits for a kv database.
Definition kv_config.hpp:15
std::uint32_t max_value_size
the maximum size in bytes of a value
Definition kv_config.hpp:17
std::uint32_t max_key_size
the maximum size in bytes of a key
Definition kv_config.hpp:16
std::uint32_t max_iterators
the maximum number of iterators that a contract can have simultaneously.
Definition kv_config.hpp:18