4namespace sysio {
namespace chain {
namespace webassembly {
18 return context.db_get_i64( itr, buffer.data(), buffer.size() );
21 return context.db_next_i64(itr, *primary);
24 return context.db_previous_i64(itr, *primary);
49 context.idx64.remove( iterator );
52 return context.idx64.find_secondary(code, scope, table, *secondary, *primary);
55 return context.idx64.find_primary(code, scope, table, *secondary, primary);
58 const int32_t ret =
context.idx64.lowerbound_secondary(code, scope, table, *secondary, *primary);
64 const int32_t ret =
context.idx64.upperbound_secondary(code, scope, table, *secondary, *primary);
70 return context.idx64.end_secondary(code, scope, table);
73 return context.idx64.next_secondary(iterator, *primary);
76 return context.idx64.previous_secondary(iterator, *primary);
90 return context.idx128.remove( iterator );
93 return context.idx128.find_secondary(code, scope, table, *secondary, *primary);
96 return context.idx128.find_primary(code, scope, table, *secondary, primary);
99 int32_t result =
context.idx128.lowerbound_secondary(code, scope, table, *secondary, *primary);
105 int32_t result =
context.idx128.upperbound_secondary(code, scope, table, *secondary, *primary);
111 return context.idx128.end_secondary(code, scope, table);
114 return context.idx128.next_secondary(iterator, *primary);
117 return context.idx128.previous_secondary(iterator, *primary);
123 inline static constexpr uint32_t idx256_array_size = 2;
127 "invalid size of secondary key array for idx256: given ${given} bytes but expected ${expected} bytes",
128 (
"given",data.size())(
"expected", idx256_array_size) );
134 "invalid size of secondary key array for idx256: given ${given} bytes but expected ${expected} bytes",
135 (
"given",data.size())(
"expected", idx256_array_size) );
139 return context.idx256.remove(iterator);
144 "invalid size of secondary key array for idx256: given ${given} bytes but expected ${expected} bytes",
145 (
"given",data.size())(
"expected", idx256_array_size) );
146 return context.idx256.find_secondary(code, scope, table, data.data(), *primary);
151 "invalid size of secondary key array for idx256: given ${given} bytes but expected ${expected} bytes",
152 (
"given",data.size())(
"expected", idx256_array_size) );
153 return context.idx256.find_primary(code, scope, table, data.data(), primary);
158 "invalid size of secondary key array for idx256: given ${given} bytes but expected ${expected} bytes",
159 (
"given",data.size())(
"expected", idx256_array_size) );
160 int32_t result =
context.idx256.lowerbound_secondary(code, scope, table, data.data(), *primary);
168 "invalid size of secondary key array for idx256: given ${given} bytes but expected ${expected} bytes",
169 (
"given",data.size())(
"expected", idx256_array_size) );
170 int32_t result =
context.idx256.upperbound_secondary(code, scope, table, data.data(), *primary);
176 return context.idx256.end_secondary(code, scope, table);
179 return context.idx256.next_secondary(iterator, *primary);
182 return context.idx256.previous_secondary(iterator, *primary);
195 return context.idx_double.remove( iterator );
198 return context.idx_double.find_secondary(code, scope, table, *secondary, *primary);
201 return context.idx_double.find_primary(code, scope, table, *secondary, primary);
204 int32_t result =
context.idx_double.lowerbound_secondary(code, scope, table, *secondary, *primary);
210 int32_t result =
context.idx_double.upperbound_secondary(code, scope, table, *secondary, *primary);
216 return context.idx_double.end_secondary(code, scope, table);
219 return context.idx_double.next_secondary(iterator, *primary);
222 return context.idx_double.previous_secondary(iterator, *primary);
235 return context.idx_long_double.remove( iterator );
238 return context.idx_long_double.find_secondary(code, scope, table, *secondary, *primary);
241 return context.idx_long_double.find_primary(code, scope, table, *secondary, primary);
244 int32_t result =
context.idx_long_double.lowerbound_secondary(code, scope, table, *secondary, *primary);
250 int32_t result =
context.idx_long_double.upperbound_secondary(code, scope, table, *secondary, *primary);
256 return context.idx_long_double.end_secondary(code, scope, table);
259 return context.idx_long_double.next_secondary(iterator, *primary);
262 return context.idx_long_double.previous_secondary(iterator, *primary);
#define SYS_ASSERT(expr, exc_type, FORMAT,...)
int32_t db_idx_long_double_lowerbound(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< float128_t, 8 > secondary, legacy_ptr< uint64_t, 8 > primary)
int32_t db_idx64_lowerbound(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< uint64_t, 8 > secondary, legacy_ptr< uint64_t, 8 > primary)
int32_t db_idx64_upperbound(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< uint64_t, 8 > secondary, legacy_ptr< uint64_t, 8 > primary)
int32_t db_idx_double_previous(int32_t iterator, legacy_ptr< uint64_t > primary)
int32_t db_idx256_next(int32_t iterator, legacy_ptr< uint64_t > primary)
int32_t db_idx_double_lowerbound(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< float64_t, 8 > secondary, legacy_ptr< uint64_t, 8 > primary)
int32_t db_idx256_upperbound(uint64_t code, uint64_t scope, uint64_t table, legacy_span< uint128_t, 16 > data, legacy_ptr< uint64_t, 8 > primary)
int32_t db_idx64_end(uint64_t code, uint64_t scope, uint64_t table)
int32_t db_idx_long_double_previous(int32_t iterator, legacy_ptr< uint64_t > primary)
int32_t db_idx_double_find_primary(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< float64_t > secondary, uint64_t primary)
int32_t db_idx_long_double_store(uint64_t scope, uint64_t table, uint64_t payer, uint64_t id, legacy_ptr< const float128_t > secondary)
void db_idx128_remove(int32_t iterator)
void db_remove_i64(int32_t itr)
void db_idx_long_double_remove(int32_t iterator)
int32_t db_store_i64(uint64_t scope, uint64_t table, uint64_t payer, uint64_t id, legacy_span< const char > buffer)
void db_idx128_update(int32_t iterator, uint64_t payer, legacy_ptr< const uint128_t > secondary)
int32_t db_idx128_upperbound(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< uint128_t, 16 > secondary, legacy_ptr< uint64_t, 8 > primary)
int32_t db_idx64_find_primary(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< uint64_t > secondary, uint64_t primary)
int32_t db_idx_long_double_next(int32_t iterator, legacy_ptr< uint64_t > primary)
int32_t db_idx_long_double_find_primary(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< float128_t > secondary, uint64_t primary)
int32_t db_idx256_find_secondary(uint64_t code, uint64_t scope, uint64_t table, legacy_span< const uint128_t > data, legacy_ptr< uint64_t > primary)
int32_t db_end_i64(uint64_t code, uint64_t scope, uint64_t table)
int32_t db_idx_double_upperbound(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< float64_t, 8 > secondary, legacy_ptr< uint64_t, 8 > primary)
int32_t db_next_i64(int32_t itr, legacy_ptr< uint64_t > primary)
int32_t db_idx64_next(int32_t iterator, legacy_ptr< uint64_t > primary)
void db_idx_double_update(int32_t iterator, uint64_t payer, legacy_ptr< const float64_t > secondary)
int32_t db_upperbound_i64(uint64_t code, uint64_t scope, uint64_t table, uint64_t id)
int32_t db_idx_double_store(uint64_t scope, uint64_t table, uint64_t payer, uint64_t id, legacy_ptr< const float64_t > secondary)
int32_t db_idx_double_find_secondary(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< const float64_t > secondary, legacy_ptr< uint64_t > primary)
void db_update_i64(int32_t itr, uint64_t payer, legacy_span< const char > buffer)
int32_t db_get_i64(int32_t itr, legacy_span< char > buffer)
int32_t db_idx256_store(uint64_t scope, uint64_t table, uint64_t payer, uint64_t id, legacy_span< const uint128_t > data)
int32_t db_idx128_find_primary(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< uint128_t > secondary, uint64_t primary)
int32_t db_idx128_end(uint64_t code, uint64_t scope, uint64_t table)
int32_t db_idx_double_end(uint64_t code, uint64_t scope, uint64_t table)
int32_t db_idx64_previous(int32_t iterator, legacy_ptr< uint64_t > primary)
int32_t db_idx128_previous(int32_t iterator, legacy_ptr< uint64_t > primary)
void db_idx64_update(int32_t iterator, uint64_t payer, legacy_ptr< const uint64_t > secondary)
int32_t db_idx64_store(uint64_t scope, uint64_t table, uint64_t payer, uint64_t id, legacy_ptr< const uint64_t > secondary)
void db_idx_double_remove(int32_t iterator)
int32_t db_idx256_previous(int32_t iterator, legacy_ptr< uint64_t > primary)
int32_t db_lowerbound_i64(uint64_t code, uint64_t scope, uint64_t table, uint64_t id)
int32_t db_idx128_find_secondary(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< const uint128_t > secondary, legacy_ptr< uint64_t > primary)
int32_t db_idx256_end(uint64_t code, uint64_t scope, uint64_t table)
void db_idx64_remove(int32_t iterator)
int32_t db_idx256_lowerbound(uint64_t code, uint64_t scope, uint64_t table, legacy_span< uint128_t, 16 > data, legacy_ptr< uint64_t, 8 > primary)
int32_t db_idx_long_double_find_secondary(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< const float128_t > secondary, legacy_ptr< uint64_t > primary)
void db_idx256_update(int32_t iterator, uint64_t payer, legacy_span< const uint128_t > data)
int32_t db_find_i64(uint64_t code, uint64_t scope, uint64_t table, uint64_t id)
void db_idx_long_double_update(int32_t iterator, uint64_t payer, legacy_ptr< const float128_t > secondary)
int32_t db_idx256_find_primary(uint64_t code, uint64_t scope, uint64_t table, legacy_span< uint128_t > data, uint64_t primary)
int32_t db_idx64_find_secondary(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< const uint64_t > secondary, legacy_ptr< uint64_t > primary)
void db_idx256_remove(int32_t iterator)
int32_t db_idx_double_next(int32_t iterator, legacy_ptr< uint64_t > primary)
int32_t db_idx128_lowerbound(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< uint128_t, 16 > secondary, legacy_ptr< uint64_t, 8 > primary)
int32_t db_idx_long_double_upperbound(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< float128_t, 8 > secondary, legacy_ptr< uint64_t, 8 > primary)
int32_t db_idx128_store(uint64_t scope, uint64_t table, uint64_t payer, uint64_t id, legacy_ptr< const uint128_t > secondary)
int32_t db_idx_long_double_end(uint64_t code, uint64_t scope, uint64_t table)
int32_t db_previous_i64(int32_t itr, legacy_ptr< uint64_t > primary)
int32_t db_idx128_next(int32_t iterator, legacy_ptr< uint64_t > primary)
unsigned __int64 uint64_t